Skip to content

Commit 20af67a

Browse files
committed
Adds additional debug logs
1 parent eee4799 commit 20af67a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

recipe/session/sessionRequestFunctions.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@ func RefreshSessionInRequest(req *http.Request, res http.ResponseWriter, config
351351
}
352352
}
353353

354+
if isUnauthorisedErr {
355+
supertokens.LogDebugMessage("RefreshSessionInRequest: Returning UnauthorizedError because RefreshSession returned an error")
356+
}
357+
354358
return nil, err
355359
}
356360

0 commit comments

Comments
 (0)