Skip to content

Commit

Permalink
fix: pass config
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Jul 1, 2023
1 parent fb61463 commit 37a4e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/route/callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ nanoServer.route('GET', '/callback', async (connection) => {
};
}

const client = new AuthorizationCode(config);
const client = new AuthorizationCode({auth: config.auth, client: config.client});
const tokenParams = {
code,
redirect_uri: `https://${host}/callback?provider=${provider}`,
Expand Down

0 comments on commit 37a4e54

Please sign in to comment.