fix: handle webviews
This commit is contained in:
5
auth.ts
5
auth.ts
@@ -14,9 +14,9 @@ function getLoginType(user: User) {
|
||||
// }
|
||||
|
||||
if (user?.login_with.includes("@")) {
|
||||
return LoginTypeEnum.Email
|
||||
return LoginTypeEnum.email
|
||||
} else {
|
||||
return LoginTypeEnum.MembershipNumber
|
||||
return LoginTypeEnum["membership number"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -176,7 +176,6 @@ export const config = {
|
||||
access_token: new_tokens.access_token,
|
||||
expires_at: new_tokens.expires_at,
|
||||
refresh_token: new_tokens.refresh_token ?? token.refresh_token,
|
||||
loginType,
|
||||
}
|
||||
} catch (error) {
|
||||
console.log("token-debug Error thrown when trying to refresh", {
|
||||
|
||||
Reference in New Issue
Block a user