Skip to content

Commit 2fd7f28

Browse files
committed
added optional parameter for getAccesstoken in call in handleOAuth2Callback
1 parent 9895255 commit 2fd7f28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util/oauth.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export async function handleOAuth2Callback(
7979
res: Response,
8080
checkNonceCookie: boolean = false,
8181
paramCommunication: GetAccessTokenParamCommunication = GetAccessTokenParamCommunication.BODY,
82+
additionalHeaders: Record<string, any> = {},
8283
): Promise<{ apiKey: string; apiUrl: string; query_params: any }> {
8384
try {
8485
if (req.query.error)
@@ -116,6 +117,7 @@ export async function handleOAuth2Callback(
116117
config.client_secret,
117118
config.redirect_uri,
118119
paramCommunication,
120+
additionalHeaders,
119121
);
120122
return {
121123
apiKey: config.extractToken(response),

0 commit comments

Comments
 (0)