Skip to content

Commit

Permalink
Update the debug var to be called enableDebugLogs
Browse files Browse the repository at this point in the history
  • Loading branch information
deepjyoti30-st committed Sep 27, 2024
1 parent 35033e9 commit 7b25fbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/supertokens.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ class SuperTokens {
Function(Eventype)? eventHandler,
http.Request Function(APIAction, http.Request)? preAPIHook,
Function(APIAction, http.Request, http.Response)? postAPIHook,
bool? debug,
bool? enableDebugLogs,
}) {
if (SuperTokens.isInitCalled) {
return;
}

// Enable debug mode if that is specified by the user.
if (debug != null && debug) {
if (enableDebugLogs != null && enableDebugLogs) {
enableLogging();
}

Expand Down

0 comments on commit 7b25fbd

Please sign in to comment.