mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-03 06:29:42 +00:00
OIDC: Fix CodeQL warnings
This commit is contained in:
parent
c2a7615319
commit
e428ba5657
3 changed files with 21 additions and 3 deletions
|
|
@ -303,7 +303,7 @@ class Auth {
|
|||
const authorizationUrlResponse = this.oidcAuthStrategy.getAuthorizationUrl(req, isMobileFlow, callback)
|
||||
|
||||
if (authorizationUrlResponse.error) {
|
||||
return res.status(authorizationUrlResponse.status).send(authorizationUrlResponse.error)
|
||||
return res.status(authorizationUrlResponse.status).json({ error: authorizationUrlResponse.error })
|
||||
}
|
||||
|
||||
res.redirect(authorizationUrlResponse.authorizationUrl)
|
||||
|
|
@ -400,7 +400,7 @@ class Auth {
|
|||
|
||||
const openIdIssuerConfig = await this.oidcAuthStrategy.getIssuerConfig(req.query.issuer)
|
||||
if (openIdIssuerConfig.error) {
|
||||
return res.status(openIdIssuerConfig.status).send(openIdIssuerConfig.error)
|
||||
return res.status(openIdIssuerConfig.status).json({ error: openIdIssuerConfig.error })
|
||||
}
|
||||
|
||||
res.json(openIdIssuerConfig)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue