rembrembdocs

Social Login


Social Login (OAuth) is an open standard for authentication that allows users to log in to one website or application using their credentials from another website or application. OAuth allows users to grant third-party applications access to their online accounts without sharing their passwords. OAuth is commonly used for things like logging in to a social media account from a third-party app. It is a secure and convenient way to authenticate users and share information between applications.

Benefits#

There are several reasons why you might want to add social login to your applications:

Set up a social provider with Supabase Auth#

Supabase supports a suite of social providers. Follow these guides to configure a social provider for your platform.

[

Google Icon

Google

](/docs/guides/auth/social-login/auth-google)[

Facebook Icon

Facebook

](/docs/guides/auth/social-login/auth-facebook)[

Apple Icon

Apple

](/docs/guides/auth/social-login/auth-apple)[

Azure (Microsoft) Icon

Azure (Microsoft)

](/docs/guides/auth/social-login/auth-azure)[

Twitter Icon

Twitter

](/docs/guides/auth/social-login/auth-twitter)[

GitHub Icon

GitHub

](/docs/guides/auth/social-login/auth-github)[

Gitlab Icon

Gitlab

](/docs/guides/auth/social-login/auth-gitlab)[

Bitbucket Icon

Bitbucket

](/docs/guides/auth/social-login/auth-bitbucket)[

Discord Icon

Discord

](/docs/guides/auth/social-login/auth-discord)[

Figma Icon

Figma

](/docs/guides/auth/social-login/auth-figma)[

Kakao Icon

Kakao

](/docs/guides/auth/social-login/auth-kakao)[

Keycloak Icon

Keycloak

](/docs/guides/auth/social-login/auth-keycloak)[

LinkedIn Icon

LinkedIn

](/docs/guides/auth/social-login/auth-linkedin)[

Notion Icon

Notion

](/docs/guides/auth/social-login/auth-notion)[

Slack Icon

Slack

](/docs/guides/auth/social-login/auth-slack)[

Spotify Icon

Spotify

](/docs/guides/auth/social-login/auth-spotify)[

Twitch Icon

Twitch

](/docs/guides/auth/social-login/auth-twitch)[

WorkOS Icon

WorkOS

](/docs/guides/auth/social-login/auth-workos)[

Zoom Icon

Zoom

](/docs/guides/auth/social-login/auth-zoom)

Need to integrate with a provider not listed here? You can add any OAuth2 or OIDC-compatible provider using Custom OAuth/OIDC Providers.

Provider tokens#

You can use the provider token and provider refresh token returned to make API calls to the OAuth provider. For example, you can use the Google provider token to access Google APIs on behalf of your user.

Supabase Auth does not manage refreshing the provider token for the user. Your application will need to use the provider refresh token to obtain a new provider token. If no provider refresh token is returned, then it could mean one of the following:

Provider tokens are intentionally not stored in your project's database. This is because provider tokens give access to potentially sensitive user data in third-party systems. Different applications have different needs, and one application's OAuth scopes may be significantly more permissive than another. If you want to use the provider token outside of the browser that completed the OAuth flow, it is recommended to send it to a trusted and secure server you control.