Skip to content

Commit 188d514

Browse files
chore: minor corrections
1 parent 772acce commit 188d514

File tree

1 file changed

+8
-6
lines changed
  • src/pages/[platform]/build-a-backend/auth/concepts/external-identity-providers

1 file changed

+8
-6
lines changed

src/pages/[platform]/build-a-backend/auth/concepts/external-identity-providers/index.mdx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,9 @@ await signInWithRedirect({
389389

390390
### Redirect URIs
391391

392-
For _Sign in Redirect URI(s)_ inputs, you can put one URI for local development and one for production. Example: `http://localhost:3000/` in dev and `https://www.example.com/` in production. The same is true for _Sign out Redirect URI(s)_.
392+
For _Sign in Redirect URI(s)_ inputs, you can set one URI for local development and one for production. For example: `http://localhost:3000/` in dev and `https://www.example.com/` in production. The same is true for _Sign out Redirect URI(s)_.
393393

394-
If you have multiple redirect URI inputs, you'll need to pass them in your Amplify configuration. For example:
394+
If you have multiple redirect URIs, you'll need to pass them in your Amplify configuration. For example:
395395

396396
```javascript
397397
Amplify.configure({
@@ -511,9 +511,12 @@ Use the `signInWithRedirect` API to initiate sign-in with an external identity p
511511
```ts title="src/my-client-side-js.js"
512512
import { signInWithRedirect } from 'aws-amplify/auth';
513513

514-
await signInWithRedirect({
515-
provider: 'Apple'
516-
});
514+
function handleSignInWithRedirect() {
515+
signInWithRedirect({
516+
provider: 'Apple'
517+
});
518+
}
519+
517520
```
518521

519522
### Redirect URIs
@@ -578,7 +581,6 @@ function handleSignOut() {
578581
});
579582
}
580583

581-
582584
```
583585
<Callout> Irrespective of whether a `redirectUrl` is provided to `signOut`, a URL that does not contain http or https is expected to be present in the configured redirect URL list. This is because iOS requires an appScheme when creating the web session. </Callout>
584586

0 commit comments

Comments
 (0)