fix: (auth) token login fix
This commit is contained in:
@@ -118,6 +118,7 @@ async function login(email: string, password: string) {
|
||||
});
|
||||
appRouter.replace({ name: 'index' });
|
||||
} catch (error: unknown) {
|
||||
console.log(error);
|
||||
if (error instanceof AppwriteException) {
|
||||
if (error.type === 'user_session_already_exists') {
|
||||
appRouter.replace({ name: 'index' });
|
||||
|
||||
Reference in New Issue
Block a user