fixed login with incorrect email and password

This commit is contained in:
RemixDev 2021-12-21 17:55:53 +01:00
parent af11277aa6
commit 70a6584129

View File

@ -9,6 +9,7 @@ const handler: ApiHandler['handler'] = async (req, res) => {
if (!accessToken) {
accessToken = await getAccessToken(email, password)
if (accessToken === 'undefined') accessToken = undefined
}
let arl
if (accessToken) arl = await getArlFromAccessToken(accessToken)