Skip to content

Commit 081eb3c

Browse files
committed
Fixed type for Auth.federatedSignIn() in lib/auth/js/social
1 parent f10b6f0 commit 081eb3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fragments/lib/auth/js/social.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ When using the federated OAuth flow with Cognito User Pools, the [device trackin
143143

144144
## Setup frontend
145145

146-
After configuring the OAuth endpoints (Cognito Hosted UI), you can integrate your App by invoking `Auth.federatedSignIn()` function. Passing `LoginWithAmazon`, `Facebook`, `Google`, or `SignInWithApple` on the `provider` argument (e.g `Auth.federatedSign({ provider: 'LoginWithAmazon' })`), it will bypass the Hosted UI and federate immediately with the social provider as shown in the below React example. If you are looking to add a custom state, you are able to do so by passing a string (e.g. `Auth.federatedSignIn({ customState: 'xyz' })`) value and listening for the custom state via Hub.
146+
After configuring the OAuth endpoints (Cognito Hosted UI), you can integrate your App by invoking `Auth.federatedSignIn()` function. Passing `LoginWithAmazon`, `Facebook`, `Google`, or `SignInWithApple` on the `provider` argument (e.g `Auth.federatedSignIn({ provider: 'LoginWithAmazon' })`), it will bypass the Hosted UI and federate immediately with the social provider as shown in the below React example. If you are looking to add a custom state, you are able to do so by passing a string (e.g. `Auth.federatedSignIn({ customState: 'xyz' })`) value and listening for the custom state via Hub.
147147

148148
```javascript
149149
import React, { useEffect, useState } from 'react';

0 commit comments

Comments
 (0)