Skip to content

Commit

Permalink
document strange token logic
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-coding committed Jul 30, 2024
1 parent 720072d commit b950100
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/api-internal/auth-redirect.middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export class AuthRedirectMiddleware extends StateMiddleware<
if (!state.activeLogin.isValid) {
throw new Error("Active login invalid");
}
// if the login service handles the registration, two tokens were already generated: the code and the access token
if (
state.activeLogin.nextExpectedRefreshTokenNumber !=
ActiveLogin.LOGGED_IN_BUT_TOKEN_NOT_YET_RETRIVED + (state.secondToken ? 2 : 0)
Expand Down

0 comments on commit b950100

Please sign in to comment.