diff --git a/server/src/routes/api/post/loginWithCredentials.ts b/server/src/routes/api/post/loginWithCredentials.ts index 5841e80..f128a74 100644 --- a/server/src/routes/api/post/loginWithCredentials.ts +++ b/server/src/routes/api/post/loginWithCredentials.ts @@ -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)