Skip to content

Commit

Permalink
fix getUri using 'code' tokentype instead of 'token'
Browse files Browse the repository at this point in the history
  • Loading branch information
maspio committed Mar 15, 2023
1 parent ebfb900 commit 7848763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/credentials/oauth2Credential.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ oauth2CredentialController.get(
await Db.collections.Credentials.update(req.query.id, newCredentialsData);

const authQueryParameters = get(oauthCredentials, 'authQueryParameters', '') as string;
let returnUri = getUri(oAuthOptions, 'token') as string;
let returnUri = getUri(oAuthOptions, 'code') as string;

// if scope uses comma, change it as the library always return then with spaces
if ((get(oauthCredentials, 'scope') as string).includes(',')) {
Expand Down

0 comments on commit 7848763

Please sign in to comment.