Skip to content

Commit 95616fb

Browse files
Add Skip the Auth0 login page to FAQ (#1324)
### Changes Adds an additional entry to the FAQ about skipping the Auth0 login page, after having a conversation with someone that was confused about this. ### References N/A ### Testing N/A ### Checklist - [x] I have read the [Auth0 general contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md) - [x] I have read the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md) - [x] All code quality tools/guidelines have been run/followed --------- Co-authored-by: Gyanesh Gouraw <160731216+gyaneshgouraw-okta@users.noreply.github.com>
1 parent 70abe31 commit 95616fb

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

FAQ.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,22 @@ const client = new Auth0Client({
181181
```
182182

183183
In this case, the loading of the `Worker` would comply with a CSP that included `'self'`. You can follow similar steps if you'd prefer to copy the file to your own CDN instead.
184+
185+
## Skip the Auth0 login page?
186+
187+
When integrating with third party providers such as Google or Microsoft, being redirected to Auth0 before being redirected to the corresponding provider can be sub-optimal in terms of user-experience.
188+
If you only have a single connection enabled, or you know up front how the user wants to authenticate, you can set the `connection` parameter when calling `loginWithRedirect()` or `loginWithPopup()`:
189+
190+
```
191+
loginWithRedirect({
192+
// ...
193+
authorizationParams: {
194+
connection: 'connection_logical_identifier'
195+
}
196+
})
197+
```
198+
199+
Doing so for connections such as Google or Microsoft, would automatically redirect you to them instead of showing the Auth0 login page first.
200+
201+
ℹ️ You can find the connection's logical identifier as the **connection name** in the connection settings in the Auth0 dashboard for your tenant.
202+

0 commit comments

Comments
 (0)