We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9895255 commit 2fd7f28Copy full SHA for 2fd7f28
src/util/oauth.ts
@@ -79,6 +79,7 @@ export async function handleOAuth2Callback(
79
res: Response,
80
checkNonceCookie: boolean = false,
81
paramCommunication: GetAccessTokenParamCommunication = GetAccessTokenParamCommunication.BODY,
82
+ additionalHeaders: Record<string, any> = {},
83
): Promise<{ apiKey: string; apiUrl: string; query_params: any }> {
84
try {
85
if (req.query.error)
@@ -116,6 +117,7 @@ export async function handleOAuth2Callback(
116
117
config.client_secret,
118
config.redirect_uri,
119
paramCommunication,
120
+ additionalHeaders,
121
);
122
return {
123
apiKey: config.extractToken(response),
0 commit comments