From 7b25fbdac869f7857e7df47373aadef52af17cd4 Mon Sep 17 00:00:00 2001 From: Deepjyoti Barman Date: Fri, 27 Sep 2024 17:43:50 +0530 Subject: [PATCH] Update the debug var to be called enableDebugLogs --- lib/src/supertokens.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/supertokens.dart b/lib/src/supertokens.dart index e2cf141..93bc47c 100644 --- a/lib/src/supertokens.dart +++ b/lib/src/supertokens.dart @@ -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(); }