We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 231628e commit 37b398bCopy full SHA for 37b398b
api/internal/features/supertokens/auth.go
@@ -73,8 +73,12 @@ func Init(appInstance *storage.App) {
73
apiBasePath := "/auth"
74
websiteBasePath := "/auth"
75
76
+ // Disable debug logs in development mode
77
+ isDevelopment := strings.ToLower(config.App.Environment) == "development" || strings.ToLower(config.App.Environment) == "dev"
78
+ debugEnabled := !isDevelopment
79
+
80
err := supertokens.Init(supertokens.TypeInput{
- Debug: true,
81
+ Debug: debugEnabled,
82
Supertokens: &supertokens.ConnectionInfo{
83
ConnectionURI: config.Supertokens.ConnectionURI,
84
APIKey: config.Supertokens.APIKey,
0 commit comments