1
0
Fork 0
mirror of synced 2024-07-03 05:31:38 +12:00
appwrite/docs/references/account/create-session-oauth2.md

4 lines
662 B
Markdown
Raw Normal View History

2021-06-24 18:07:08 +12:00
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 account details is attached to the same account that already has the active session. If there are no active sessions, it will look for the user with the same email address as the email received from OAuth2 provider and attach the new session to the existing user if found however it will create a new user if the email doesn't exist in the database.