Skip to content

Commit

Permalink
Fix accidental required magic link callback
Browse files Browse the repository at this point in the history
In the sveltekit auth helper, we accidentally defined
`onMagicLinkCallback` as a required method instead of an optional
callback handler.
  • Loading branch information
scotttrinh committed Sep 17, 2024
1 parent ee19a17 commit c4aebce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/auth-sveltekit/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ export interface AuthRouteHandlers {
{ verificationToken?: string }
>,
) => Promise<never>;
onMagicLinkCallback(
onMagicLinkCallback?: (
params: ParamsOrError<{
tokenData: TokenData;
isSignUp: boolean;
}>,
): Promise<Response>;
) => Promise<Response>;
onSignout?: () => Promise<never>;
}

Expand Down

0 comments on commit c4aebce

Please sign in to comment.