Skip to content

Commit

Permalink
small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Nov 23, 2023
1 parent 98b60f9 commit e907412
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions recipe/session/recipe.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,18 @@ func MakeRecipe(recipeId string, appInfo supertokens.NormalisedAppinfo, config *
return Recipe{}, configError
}

if config.AntiCsrf == nil {
if verifiedConfig.AntiCsrfFunctionOrString.FunctionValue != nil {
supertokens.LogDebugMessage("session init: AntiCsrf: function")
} else {
supertokens.LogDebugMessage("session init: AntiCsrf: " + *config.AntiCsrf)
supertokens.LogDebugMessage("session init: AntiCsrf: " + *&verifiedConfig.AntiCsrfFunctionOrString.StrValue)
}
if verifiedConfig.CookieDomain != nil {
supertokens.LogDebugMessage("session init: CookieDomain: " + *verifiedConfig.CookieDomain)
} else {
supertokens.LogDebugMessage("session init: CookieDomain: nil")
}
// we intentionally use config here instead of verifiedConfig will always
// be a function for getting cookieSameSite.
if config.CookieSameSite == nil {
supertokens.LogDebugMessage("session init: CookieSameSite: default function")
} else {
Expand Down

0 comments on commit e907412

Please sign in to comment.