Skip to content

Commit

Permalink
AppLoadContext doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mw10013 committed Apr 19, 2024
1 parent d1f10a6 commit a1e5fb5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,18 @@ function setUpGlobals() {
}
```

### AppLoadContext

If you need `context` to be populated with the `AppLoadContext` in `SendTOTPOptions` or `TOTPVerifyParams`, be sure to include it in the call to `authenticate` on the remix-auth `Authenticator`.

```ts
await authenticator.authenticate("TOTP", request, {
successRedirect: "/verify",
failureRedirect: new URL(request.url).pathname,
context: appLoadContext
});
```

### Using Cloudflare KV for Session Storage

```ts
Expand Down

0 comments on commit a1e5fb5

Please sign in to comment.