feat: better user switching code
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 1m0s

This commit is contained in:
2025-09-15 12:47:28 -04:00
parent 98876f23b8
commit 0fc62d25c3
6 changed files with 53 additions and 53 deletions

View File

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

View File

@@ -4,14 +4,7 @@ mutation userSwitchTo($userId: ID!) {
refreshToken
user {
id
databaseId
username
email
firstName
lastName
avatar {
url
}
}
}
}