refactor: use onServerResponse for auth instead of server api

This commit is contained in:
2025-09-18 10:23:09 -04:00
parent a661350e1c
commit c82abe88e4
11 changed files with 57 additions and 139 deletions

View File

@@ -1,10 +0,0 @@
mutation login($email: String!, $password: String!) {
login(input: { username: $email, password: $password }) {
authToken
refreshToken
user {
id
email
}
}
}

View File

@@ -1,5 +0,0 @@
mutation userSwitchBack {
userSwitchBack(input: {}) {
success
}
}

View File

@@ -1,10 +0,0 @@
mutation userSwitchTo($userId: ID!) {
userSwitchTo(input: { userId: $userId }) {
authToken
refreshToken
user {
id
email
}
}
}