Skip to content

Commit

Permalink
return the promise
Browse files Browse the repository at this point in the history
  • Loading branch information
giriparus committed May 9, 2024
1 parent bc10cec commit bd9c129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oidc-consumer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class OidcConsumer {


async verifySession(request: Request, response: Response, next: NextFunction, throwError: Boolean = false) {
await new Promise<void>((resolve, reject) => {
return new Promise<void>((resolve, reject) => {
delete (request.session as ICustomSession).state;
request.session.reload(async () => {
const state = (request.session as ICustomSession).state;
Expand Down

0 comments on commit bd9c129

Please sign in to comment.