Skip to content

Commit

Permalink
Update FAQ to include passwordless magic links (#1130)
Browse files Browse the repository at this point in the history
### Changes

Adds a note to the FAQ about passwordless magic links and the need for
`useCookiesForTranasaction`

### References

#671 

### 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
  • Loading branch information
frederikprijck authored Aug 31, 2023
1 parent e8e4f2c commit a12f588
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,14 @@ To mitigate this, use one of the following solutions:
- Revert to the v1 behaviour by setting `useRefreshTokenFallback` to `true`.

In all cases, the fallback will not work in browsers where third-party cookies are blocked, unless you are using [custom domains](https://auth0.com/docs/customize/custom-domains).

## Why is the passwordless magic link not working?

By default, the SDK stores transactional data in the browser's session storage. This means that the authentication flow needs to be finished in the same browser tab it was started.
This can cause issues when using passwordless with magic links, as that typically opens in a new tab. To solve this, our SDK can be configured to store the transactional data in a cookie instead of session storage:

```ts
new Auth0Client({
useCookiesForTransaction: true
});
```

0 comments on commit a12f588

Please sign in to comment.