Add additional logging for mobile auth login errors

This commit is contained in:
Jackson Harper 2023-02-06 11:10:29 +08:00
parent 8f5cf4c8a0
commit 1e63899748

View file

@ -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
}
}