juicycleff / ultimate-backend

Multi tenant SaaS starter kit with cqrs graphql microservice architecture, apollo federation, event source and authentication
https://juicycleff.github.io/ultimate-backend-docs
MIT License
2.65k stars 409 forks source link

how to login with return token for auth? #132

Closed eduscrakozabrus closed 4 years ago

eduscrakozabrus commented 4 years ago

how to login with return token for auth? mutation {account {login (input: {service:Password params: {email: "AliceBobsEmail@protonmail.com" password: "supersecretpassword" }}) {tokens {accessToken} } }}

{ "errors": [ { "message": "Cannot return null for non-nullable field Account.tokens.", "locations": [ { "line": 4, "column": 7 } ], "path": [ "account", "login", "tokens" ], "extensions": { "code": "INTERNAL_SERVER_ERROR", "exception": { "stacktrace": [ "Error: Cannot return null for non-nullable field Account.tokens.", " at