1
0
Fork 0
mirror of synced 2024-07-04 14:10:33 +12:00
appwrite/docs/references/account/create-token-oauth2.md
2024-02-20 11:45:11 +00:00

693 B

Allow the user to login to their account using the OAuth2 provider of their choice. Each OAuth2 provider should be enabled from the Appwrite console first. Use the success and failure arguments to provide a redirect URL's back to your app when login is completed.

If authentication succeeds, userId and secret of a token will be appended to the success URL as query parameters. These can be used to create a new session using the Create session endpoint.

A user is limited to 10 active sessions at a time by default. Learn more about session limits.