Skip to content

Commit

Permalink
Fix nullification of authorization_code
Browse files Browse the repository at this point in the history
  • Loading branch information
pstamatop committed Sep 26, 2023
1 parent 22b0399 commit fef2923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openid4vci/grant_types/AuthorizationCodeGrant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export async function authorizationCodeGrantTokenEndpoint(body: TokenRequestBody
throw new Error(`No user session was found for authorization code ${body.code}`)
}

userSession.state = undefined;
userSession.authorization_code = undefined;
await AppDataSource.getRepository(AuthorizationServerState).save(userSession);

return generateAccessToken(userSession);
Expand Down

0 comments on commit fef2923

Please sign in to comment.