Connected authentication to the backend and fixed CORS

This commit is contained in:
2022-06-04 16:27:39 +02:00
parent 72123aee2f
commit 4667029869
15 changed files with 3194 additions and 106 deletions

View File

@@ -0,0 +1,13 @@
mutation Login($credentials: LoginInput!) {
login(body: $credentials) {
... on AuthSuccess {
user {
name
}
token
}
... on CommonError {
message
}
}
}