Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const GET = handleAuth({ returnPathname: '/dashboard' });
If your application needs to persist data upon a successful authentication, like the `oauthTokens` from an upstream provider, you can pass in a `onSuccess` function that will get called after the user has successfully authenticated:

```ts
export const GET = handleAUth({
export const GET = handleAuth({
onSuccess: async ({ oauthTokens }) => {
await saveTokens(oauthTokens);
},
Expand Down