-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(wabe): add authentication methods
- Loading branch information
Showing
11 changed files
with
526 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
packages/wabe-documentation/docs/config/authentication/defaultMethods.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Default authentication methods | ||
|
||
Wabe provides some default authentication methods that you can use in your project. | ||
|
||
Here is a list of the default authentication methods: | ||
|
||
- Email password | ||
- Phone password | ||
|
||
```graphql | ||
# Email password | ||
mutation signUpWith { | ||
signUpWith( | ||
input: {authentication: {emailPassword: {email: "your.email@gmail.com", password: "password"}}} | ||
) { | ||
id | ||
accessToken | ||
refreshToken | ||
} | ||
} | ||
# Phone password | ||
mutation signUpWith { | ||
signUpWith( | ||
input: {authentication: {phonePassword: {phone: "+33601020304", password: "password"}}} | ||
) { | ||
id | ||
accessToken | ||
refreshToken | ||
} | ||
} | ||
|
||
mutation signUpWith { | ||
signUpWith( | ||
input: {authentication: {google: {authorizationCode: "authorizationCode", codeVerifier: "codeVerifier"}}} | ||
) { | ||
id | ||
accessToken | ||
refreshToken | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.