Connected authentication to the backend and fixed CORS
This commit is contained in:
13
frontend/src/queries/services.graphql
Normal file
13
frontend/src/queries/services.graphql
Normal file
@@ -0,0 +1,13 @@
|
||||
mutation Login($credentials: LoginInput!) {
|
||||
login(body: $credentials) {
|
||||
... on AuthSuccess {
|
||||
user {
|
||||
name
|
||||
}
|
||||
token
|
||||
}
|
||||
... on CommonError {
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user