Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
poovamraj committed Nov 27, 2023
1 parent 9c49f8a commit 6f5e73c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ Note that with `ephemeralSession: true` you don't need to call `clearSession` at

You still need to call `clearSession` on Android, though, as `ephemeralSession` is iOS-only.


### Use `SFSafariViewController`

An alternative is to use `SFSafariViewController` instead of `ASWebAuthenticationSession`. You can do so with the built-in `SFSafariViewController` Web Auth provider:
Expand All @@ -89,7 +88,7 @@ An alternative is to use `SFSafariViewController` instead of `ASWebAuthenticatio
auth0.webAuth
.authorize(
{ scope: 'openid profile email' },
{ useSFSafariViewController: true } // Use SFSafariViewController
{ useSFSafariViewController: {} } // Use SFSafariViewController
)
.then((credentials) => console.log(credentials))
.catch((error) => console.log(error));
Expand Down

0 comments on commit 6f5e73c

Please sign in to comment.