Skip to content

Commit

Permalink
chore: authResponse => oauthResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
eol-account committed May 4, 2022
1 parent 52f3784 commit a01e027
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spreadsheetHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class SpreadsheetHandler {

// Here redirect_uri just needs to match what was sent previously to satisfy Google's security requirements
oAuth2Client.getToken(
{ code: authToken, redirect_uri: `${this._coreUrl?.toString()}/devices/${this._deviceId}/authResponse` },
{ code: authToken, redirect_uri: `${this._coreUrl?.toString()}/devices/${this._deviceId}/oauthResponse` },
(err, accessToken) => {
if (err) {
return reject(err)
Expand Down Expand Up @@ -369,7 +369,7 @@ export class SpreadsheetHandler {
access_type: 'offline',
scope: ACCESS_SCOPES,
prompt: 'consent',
redirect_uri: `${this._coreUrl.toString()}/devices/${this._deviceId}/authResponse`,
redirect_uri: `${this._coreUrl.toString()}/devices/${this._deviceId}/oauthResponse`,
})

// This will prompt the user in Core, which will fillow the link, and provide us with an access token.
Expand Down

0 comments on commit a01e027

Please sign in to comment.