Skip to content

Commit

Permalink
rename flow to type
Browse files Browse the repository at this point in the history
  • Loading branch information
dshukertjr committed Nov 29, 2023
1 parent 7e3321e commit 2d302d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GoTrueClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,10 +500,10 @@ export default class GoTrueClient {
}

private async _exchangeCodeForSession(authCode: string): Promise<AuthTokenResponse> {
const [codeVerifier, flow] = (
const [codeVerifier, type] = (
(await getItemAsync(this.storage, `${this.storageKey}-code-verifier`)) as string
).split('/')
const isPasswordRecoveryFlow = flow === 'PASSWORD_RECOVERY'
const isPasswordRecoveryFlow = type === 'PASSWORD_RECOVERY'
const { data, error } = await _request(
this.fetch,
'POST',
Expand Down

0 comments on commit 2d302d3

Please sign in to comment.