1
0
Fork 0
mirror of synced 2024-05-03 12:22:41 +12:00
appwrite/docs/references/account/create-session-oauth2.md
Damodar Lohani 64b2fc8056
Update docs/references/account/create-session-oauth2.md
Co-authored-by: Eldad A. Fux <eldad.fux@gmail.com>
2021-06-28 13:18:44 +05:45

630 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 there is already an active session, the new session will be attached to the logged-in account. If there are no active sessions, the server will attempt to look for a user with the same email address as the email received from the OAuth2 provider and attach the new session to the existing user. If no matching user is found - the server will create a new user..