Skip to content

Commit

Permalink
Renamed param
Browse files Browse the repository at this point in the history
  • Loading branch information
tasoskakour committed Mar 5, 2024
1 parent d23f529 commit e9c55e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ export const cleanup = (
};

export const formatExchangeCodeForTokenServerURL = (
exchangeCodeForTokenServerURL: string,
serverUrl: string,
clientId: string,
code: string,
redirectUri: string,
state: string
) => {
const url = exchangeCodeForTokenServerURL.split('?')[0];
const anySearchParameters = queryToObject(exchangeCodeForTokenServerURL.split('?')[1]);
const url = serverUrl.split('?')[0];
const anySearchParameters = queryToObject(serverUrl.split('?')[1]);
return `${url}?${objectToQuery({
...anySearchParameters,
client_id: clientId,
Expand Down

0 comments on commit e9c55e6

Please sign in to comment.