Skip to content

Commit

Permalink
afterCallback return type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FPiety0521 authored and FPiety0521 committed Dec 7, 2022
1 parent 83dfc75 commit e32ff9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export type AfterCallback = (
res: NextApiResponse,
session: Session,
state?: { [key: string]: any }
) => Promise<Session> | Session | undefined;
) => Promise<Session | undefined> | Session | undefined;

/**
* Options to customize the callback handler.
Expand Down

0 comments on commit e32ff9d

Please sign in to comment.