Skip to content

Commit

Permalink
Merge pull request #954 from alexmalev/aftercallback-return-type
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath authored Dec 8, 2022
2 parents 2e3666a + cb5fa19 commit d4f5dc9
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 d4f5dc9

Please sign in to comment.