generated from pascalmartineau/wp-skeleton
feat: better user switching code
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 1m0s
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 1m0s
This commit is contained in:
10
wp-content/themes/ccat/server/graphql/login.gql
Normal file
10
wp-content/themes/ccat/server/graphql/login.gql
Normal file
@@ -0,0 +1,10 @@
|
||||
mutation login($email: String!, $password: String!) {
|
||||
login(input: { username: $email, password: $password }) {
|
||||
authToken
|
||||
refreshToken
|
||||
user {
|
||||
id
|
||||
email
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user