Skip to content

Commit

Permalink
adjust docs to match new login abilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Dobbelaere committed Dec 12, 2023
1 parent e0b28e3 commit 50f6846
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/graphql/users and multi tenancy.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ For user registration, there has been a mutation created called `registerUser` a

```graphql
mutation{
registerUser(data:{username:"my@mail.com", password: "My123!Pass", language: "nl"}){
registerUser(username:"my@mail.com", password: "My123!Pass", language: "nl"){
username
}
}
Expand Down Expand Up @@ -145,9 +145,9 @@ Once the user receives the link, you should take the ID from the link provided.
That link will be the ID with which you can call the actual login mutation.

```graphql
mutation{
authenticateLoginLink(data:{id: "SomeGlobalID"}){
username
mutation($username: String!){
loginToken(data:{username: $username}){
expiresAt
}
}
```
Expand All @@ -161,8 +161,10 @@ Account recovery is done through a magic login link. This is the same mechanism
Request the link via:

```graphql
mutation{
recoverMe
mutation($username: String!){
recoveryToken(data:{username: $username}){
expiresAt
}
}
```

Expand Down

0 comments on commit 50f6846

Please sign in to comment.