Fix controller.
This commit is contained in:
parent
6c13d2e377
commit
a4e42a11b9
@ -55,7 +55,7 @@ async function initOIDCRouter (options: RegisterServerOptions): Promise<Router>
|
||||
}
|
||||
))
|
||||
|
||||
router.get('/cb', asyncMiddleware(
|
||||
const cbHandler = asyncMiddleware(
|
||||
async (req: Request, res: Response, _next: NextFunction) => {
|
||||
logger.info('[oidc router] OIDC callback call')
|
||||
try {
|
||||
@ -98,7 +98,9 @@ async function initOIDCRouter (options: RegisterServerOptions): Promise<Router>
|
||||
}))
|
||||
}
|
||||
}
|
||||
))
|
||||
)
|
||||
router.get('/cb', cbHandler)
|
||||
router.post('/cb', cbHandler)
|
||||
|
||||
return router
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user