mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-05-30 19:54:55 -04:00
Auto formatting
This commit is contained in:
parent
36599a2984
commit
a719065b8d
@ -379,7 +379,7 @@ class Auth {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function passportCallback(req, res, next) {
|
function passportCallback(req, res, next) {
|
||||||
return (err, user, info) => {
|
return (err, user, info) => {
|
||||||
const isMobile = req.session[sessionKey]?.mobile === true
|
const isMobile = req.session[sessionKey]?.mobile === true
|
||||||
if (err) {
|
if (err) {
|
||||||
@ -390,7 +390,7 @@ class Auth {
|
|||||||
// Info usually contains the error message from the SSO provider
|
// Info usually contains the error message from the SSO provider
|
||||||
return handleAuthError(isMobile, 401, 'Unauthorized', `[Auth] No data in openid callback - ${info}`, info?.response)
|
return handleAuthError(isMobile, 401, 'Unauthorized', `[Auth] No data in openid callback - ${info}`, info?.response)
|
||||||
}
|
}
|
||||||
|
|
||||||
req.logIn(user, (loginError) => {
|
req.logIn(user, (loginError) => {
|
||||||
if (loginError) {
|
if (loginError) {
|
||||||
return handleAuthError(isMobile, 500, 'Error during login', `[Auth] Error in openid callback: ${loginError}`)
|
return handleAuthError(isMobile, 500, 'Error during login', `[Auth] Error in openid callback: ${loginError}`)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user