mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add additional logging for mobile auth login errors
This commit is contained in:
parent
8f5cf4c8a0
commit
1e63899748
1 changed files with 8 additions and 1 deletions
|
|
@ -79,6 +79,10 @@ export async function createMobileEmailSignInResponse(
|
|||
json: mobileAuthPayload,
|
||||
}
|
||||
} catch (e) {
|
||||
console.log('createMobileEmailSignInResponse failed for user', {
|
||||
email,
|
||||
error: e,
|
||||
})
|
||||
return authFailedPayload
|
||||
}
|
||||
}
|
||||
|
|
@ -118,7 +122,10 @@ async function createAuthResponsePayload(
|
|||
json: mobileAuthPayload,
|
||||
}
|
||||
} catch (e) {
|
||||
console.log('createAuthResponsePayload error', e)
|
||||
console.log('createAuthResponsePayload error', {
|
||||
error: e,
|
||||
email: decodedTokenResult.email,
|
||||
})
|
||||
return authFailedPayload
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue