Skip to content

Commit

Permalink
[docs] Deprecate Google and Facebook auth providers in SDK 49 (expo#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
amandeepmittal authored Jun 27, 2023
1 parent a7d701c commit b89e350
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
15 changes: 12 additions & 3 deletions docs/pages/versions/unversioned/sdk/auth-session.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,20 @@ AuthSession has built-in support for some popular providers to make usage as eas

## Google

```tsx
> **warning** **Deprecated:** This provider is deprecated and will be removed in a future SDK version. See [Google authentication](/guides/google-authentication/) instead.
```jsx
import * as Google from 'expo-auth-session/providers/google';
```

- See the guide for more info on usage: [Google Authentication](/guides/authentication.mdx#google).
- Provides an extra `loginHint` parameter. If the user's email address is known ahead of time, it can be supplied to be the default option.
- Enforces minimum scopes to `['openid', 'https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/userinfo.email']` for optimal usage with services like Firebase and Auth0.
- Enforces minimum scopes to the following APIs for optimal usage with services like Firebase and Auth0.

```
['openid', 'https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/userinfo.email']
```

- By default, the authorization `code` will be automatically exchanged for an access token. This can be overridden with `shouldAutoExchangeCode`.
- Defaults to using the bundle ID and package name for the native URI redirect instead of the reverse client ID.
- Disables PKCE for implicit and id-token based auth responses.
Expand All @@ -124,7 +131,9 @@ A [`DiscoveryDocument`](#discoverydocument) object containing the discovery URLs

## Facebook

```tsx
> **warning** **Deprecated:** This provider is deprecated and will be removed in a future SDK version. See [Facebook authentication](/guides/facebook-authentication/) instead.
```jsx
import * as Facebook from 'expo-auth-session/providers/facebook';
```

Expand Down
15 changes: 12 additions & 3 deletions docs/pages/versions/v49.0.0/sdk/auth-session.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,20 @@ AuthSession has built-in support for some popular providers to make usage as eas

## Google

```tsx
> **warning** **Deprecated:** This provider is deprecated and will be removed in a future SDK version. See [Google authentication](/guides/google-authentication/) instead.
```jsx
import * as Google from 'expo-auth-session/providers/google';
```

- See the guide for more info on usage: [Google Authentication](/guides/authentication.mdx#google).
- Provides an extra `loginHint` parameter. If the user's email address is known ahead of time, it can be supplied to be the default option.
- Enforces minimum scopes to `['openid', 'https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/userinfo.email']` for optimal usage with services like Firebase and Auth0.
- Enforces minimum scopes to the following APIs for optimal usage with services like Firebase and Auth0.

```
['openid', 'https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/userinfo.email']
```

- By default, the authorization `code` will be automatically exchanged for an access token. This can be overridden with `shouldAutoExchangeCode`.
- Defaults to using the bundle ID and package name for the native URI redirect instead of the reverse client ID.
- Disables PKCE for implicit and id-token based auth responses.
Expand All @@ -124,7 +131,9 @@ A [`DiscoveryDocument`](#discoverydocument) object containing the discovery URLs

## Facebook

```tsx
> **warning** **Deprecated:** This provider is deprecated and will be removed in a future SDK version. See [Facebook authentication](/guides/facebook-authentication/) instead.
```jsx
import * as Facebook from 'expo-auth-session/providers/facebook';
```

Expand Down

0 comments on commit b89e350

Please sign in to comment.