mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 12:27:43 +00:00
docs: update google guide (#554)
This commit is contained in:
@@ -8,8 +8,7 @@ description: Google Provider
|
|||||||
### Get your Google credentials
|
### Get your Google credentials
|
||||||
To use Google as a social provider, you need to get your Google credentials. You can get them by creating a new project in the [Google Cloud Console](https://console.cloud.google.com/apis/dashboard).
|
To use Google as a social provider, you need to get your Google credentials. You can get them by creating a new project in the [Google Cloud Console](https://console.cloud.google.com/apis/dashboard).
|
||||||
|
|
||||||
Make sure to set the redirect URL to `http://localhost:3000/api/auth/callback/google` for local development. For production, you should set it to the URL of your application. If you change the base path of the auth routes, you should update the redirect URL accordingly.
|
In the Google Cloud Console > Credentials > Authorized redirect URIs, make sure to set the redirect URL to `http://localhost:3000/api/auth/callback/google` for local development. For production, make sure to set the redirect URL as your application domain, e.g. `https://example.com/api/auth/callback/google`. If you change the base path of the auth routes, you should update the redirect URL accordingly.</Step>
|
||||||
</Step>
|
|
||||||
|
|
||||||
<Step>
|
<Step>
|
||||||
### Configure the provider
|
### Configure the provider
|
||||||
@@ -66,4 +65,4 @@ const data = await client.signIn.social({
|
|||||||
|
|
||||||
<Callout>
|
<Callout>
|
||||||
If you want to use google one tap, you can use the [One Tap Plugin](/docs/plugins/one-tap) guide.
|
If you want to use google one tap, you can use the [One Tap Plugin](/docs/plugins/one-tap) guide.
|
||||||
</Callout>
|
</Callout>
|
||||||
|
|||||||
Reference in New Issue
Block a user