Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Updated OAuth docs regarding selection of application type #369

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/views/docs/authentication.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,11 @@ try await account.createOAuth2Session(provider: "amazon")</code></pre>
If there is already an active anonymous session, the new session will be attached to it. If there are no active sessions, the server will attempt to look for an account with the same email address as the email received from the OAuth2 provider and attach the new session to the existing account. If no matching account is found - the server will create a new account.
</p>

<div class="notice">
<h3>Note</h3>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On second thought, can you suggest some better titles for this than "Note"? We don't use generic titles like this.

<p>While you setup OAuth2 providers, you need to enter App ID and App Secret in your Appwrite console. You need to choose a web application in your respective 3rd party OAuth2 provider (Ex: Google) irrespective of the target platform you are building for. This is beacuse the communication is between Appwrite (Web App) and the OAuth2 provider</p>
</div>

<h3><a href="/docs/authentication#phone" id="phone">Phone</a></h3>

<p>
Expand Down