This repository was archived by the owner on Sep 29, 2023. It is now read-only.
added google OAuth provider guide#404
Open
Dksie09 wants to merge 2 commits intoappwrite:oauth-providersfrom
Open
added google OAuth provider guide#404Dksie09 wants to merge 2 commits intoappwrite:oauth-providersfrom
Dksie09 wants to merge 2 commits intoappwrite:oauth-providersfrom
Conversation
gewenyu99
suggested changes
Aug 9, 2023
|
|
||
| client | ||
| .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint | ||
| .setProject("[PROJECT_ID]"); // Your project ID |
Contributor
There was a problem hiding this comment.
Line up the comments like the other examples :D
|
|
||
| ## Creating a Google OAuth2.0 client | ||
|
|
||
| To use Google OAuth with Appwrite, you need to create an OAuth 2.0 client from your google cloud console. You can do this by following the [Setting up OAuth 2.0](https://support.google.com/googleapi/answer/6158849) guide from Google. |
Contributor
There was a problem hiding this comment.
Suggested change
| To use Google OAuth with Appwrite, you need to create an OAuth 2.0 client from your google cloud console. You can do this by following the [Setting up OAuth 2.0](https://support.google.com/googleapi/answer/6158849) guide from Google. | |
| To use Google OAuth with Appwrite, you need to create an OAuth 2.0 client from your Google Cloud console. You can do this by following the [Setting up OAuth 2.0](https://support.google.com/googleapi/answer/6158849) guide from Google. |
|
|
||
| To use Google OAuth with Appwrite, you need to create an OAuth 2.0 client from your google cloud console. You can do this by following the [Setting up OAuth 2.0](https://support.google.com/googleapi/answer/6158849) guide from Google. | ||
|
|
||
| - When prompted to provide an **Application type**, select **web application**, irrespective of your target platform. This is because the communication occurs between Appwrite (a Web App) and the OAuth2 provider. |
Contributor
There was a problem hiding this comment.
Suggested change
| - When prompted to provide an **Application type**, select **web application**, irrespective of your target platform. This is because the communication occurs between Appwrite (a Web App) and the OAuth2 provider. | |
| - When prompted to provide an **Application type**, select **web application**, irrespective of your target platform. This is because the communication occurs between Appwrite (a web app) and the OAuth2 provider on behalf of your web or mobile app. |
| final client = new Client(); | ||
| final account = new Account(client); | ||
| client | ||
| .setEndpoint('https://cloud.appwrite.io/v1') // YOUR API Endpoint |
Contributor
There was a problem hiding this comment.
The comments don't need to be all caps ;)
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Provides a detailed guide for adding Google OAuth
Have you read the Contributing Guidelines on issues?
Yes