Skip to content

Commit f5bcc08

Browse files
chore: address review comments
1 parent 313130c commit f5bcc08

File tree

1 file changed

+9
-9
lines changed
  • src/pages/gen1/[platform]/build-a-backend/auth/add-social-provider

1 file changed

+9
-9
lines changed

src/pages/gen1/[platform]/build-a-backend/auth/add-social-provider/index.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -739,9 +739,9 @@ function App() {
739739
</Block>
740740
</BlockSwitcher>
741741
742-
### Redirect URLs
742+
### Redirect URIs
743743
744-
You can provide multiple _Sign in Redirect URI(s)_ & _Sign out redirect URI(s)_.
744+
You can provide multiple _Sign in_ & _Sign out_ redirect URI(s).
745745
746746
If you have multiple redirect URI inputs, you'll need to pass them in your Amplify configuration. For example:
747747
@@ -767,7 +767,7 @@ Amplify.configure({
767767
});
768768
```
769769
770-
#### Option to specify a redirect URL upon signOut
770+
#### Specifying a redirect URI on sign out
771771
If you have multiple redirect urls configured, you may choose to override the default behavior of selecting a redirect url and provide the one of your choosing when calling `signOut`. The provided redirect url should match at least one of the configured redirect urls. If no redirect url is provided to `signOut`, the first item from the the configured redirect urls list that does not contain a http nor https prefix will be picked.
772772
773773
```ts
@@ -784,7 +784,7 @@ Amplify.configure({
784784
],
785785
redirectSignOut: [
786786
'myDevApp://',
787-
'myProdApp://'
787+
'https://oidcProvider/?logout_uri=myDevApp://'
788788
],
789789
...oauthConfig
790790
}
@@ -798,22 +798,22 @@ function handleSignOut() {
798798
signOut({
799799
global: false,
800800
oauth: {
801-
redirectUrl: 'myDevApp://'
801+
redirectUrl: 'https://oidcProvider/?logout_uri=myDevApp://'
802802
}
803803
});
804804
}
805805

806806

807807
```
808-
<Callout> Irrespective of whether a `redirectUrl` is provided to the `signOut`, an item that does not contain a http or https string is expected to be present in the configured redirect urls list. This is because iOS requires we provide an appScheme when creating the web session. </Callout>
808+
<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>
809809
810810
</InlineFilter>
811811
812812
<InlineFilter filters={["javascript", "angular", "nextjs", "react", "vue"]}>
813813
814-
### Redirect URLs
814+
### Redirect URIs
815815
816-
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)_.
816+
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)_.
817817

818818
If you have multiple redirect URI inputs, you'll need to pass them in your Amplify configuration. For example:
819819
@@ -1011,7 +1011,7 @@ function App() {
10111011
10121012
</Accordion>
10131013
1014-
#### Option to specify a redirect URL upon signOut
1014+
#### Specifying a redirect URI on sign out
10151015
If you have multiple redirect urls configured, you may choose to override the default behavior of selecting a redirect url and provide the one of your choosing when calling `signOut`. The provided redirect url should match at least one of the configured redirect urls. If no redirect url is provided to `signOut`, one will be selected based on the current app domain.
10161016
10171017
```ts

0 commit comments

Comments
 (0)