Skip to content

Commit

Permalink
Merge branch 'master' into major_fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dividehex authored May 29, 2024
2 parents e62e79c + 44f12e8 commit fcc377d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rules/Global-Function-Declarations.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ function globalFunctionDeclaration(user, context, callback) {
// with a NON RECOVERABLE error, and thus LOGIN WILL FAIL FOR USERS

// Since we do not use the /continue endpoint let's make sure we explictly fail with an UnauthorizedError

// otherwise it is possible to continue the session even after a postError redirect is set.
if (context.protocol === "redirect-callback") {
return callback(new UnauthorizedError('The /continue endpoint is not allowed'), user, context);
Expand Down

0 comments on commit fcc377d

Please sign in to comment.