Skip to content

Commit

Permalink
fix: incorrect import
Browse files Browse the repository at this point in the history
  • Loading branch information
josephaxisa committed Feb 11, 2022
1 parent 23361cc commit 5971391
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/api-explorer/src/test-data/specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
*/
import type { SpecList } from '@looker/sdk-codegen'
import { ApiModel } from '@looker/sdk-codegen'
import type { SpecState } from '@looker/api-explorer'
import { defaultSpecsState } from '@looker/api-explorer'
import type { SpecState } from '../state'
import { defaultSpecsState } from '../state'

export const specs: SpecList = {
'3.1': {
Expand Down
3 changes: 2 additions & 1 deletion packages/run-it/src/components/ConfigForm/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
*/
import type { ILookerVersions } from '@looker/sdk-codegen'
import { BrowserTransport, DefaultSettings } from '@looker/sdk-rtl'
import type { RunItValues } from '@looker/run-it'

import type { RunItValues } from '../..'

export const RunItConfigKey = 'RunItConfig'
export const RunItFormKey = 'RunItForm'
Expand Down
7 changes: 2 additions & 5 deletions packages/sdk-rtl/src/oauthSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ export class OAuthSession extends AuthSession {
}
await this.redeemAuthCode(code)
}
const token = await this.getToken()
return token
return await this.getToken()
}
return this.activeToken
}
Expand Down Expand Up @@ -258,9 +257,7 @@ export class OAuthSession extends AuthSession {
* @returns {Promise<AuthToken>}
*/
async redeemAuthCode(authCode: string, codeVerifier?: string) {
const body = this.redeemAuthCodeBody(authCode, codeVerifier)
const token = await this.requestToken(body)
return token
return this.requestToken(this.redeemAuthCodeBody(authCode, codeVerifier))
}

async getToken() {
Expand Down

0 comments on commit 5971391

Please sign in to comment.