Skip to content

Commit

Permalink
Make options optional in handlers (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 authored Mar 31, 2020
1 parent 215ff62 commit fc27dab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ export interface ISignInWithAuth0 {
/**
* Login handler which will redirect the user to Auth0.
*/
handleLogin: (req: IncomingMessage, res: ServerResponse, options: LoginOptions) => Promise<void>;
handleLogin: (req: IncomingMessage, res: ServerResponse, options?: LoginOptions) => Promise<void>;

/**
* Callback handler which will complete the transaction and create a local session.
*/
handleCallback: (req: IncomingMessage, res: ServerResponse, options: CallbackOptions) => Promise<void>;
handleCallback: (req: IncomingMessage, res: ServerResponse, options?: CallbackOptions) => Promise<void>;

/**
* Logout handler which will clear the local session and the Auth0 session
Expand All @@ -27,7 +27,7 @@ export interface ISignInWithAuth0 {
/**
* Profile handler which return profile information about the user.
*/
handleProfile: (req: NextApiRequest, res: NextApiResponse, options: ProfileOptions) => Promise<void>;
handleProfile: (req: NextApiRequest, res: NextApiResponse, options?: ProfileOptions) => Promise<void>;

/**
* Session handler which returns the current session
Expand Down

0 comments on commit fc27dab

Please sign in to comment.