From 2d302d31d9ddf15ac7307b941ed77a1dfce2e682 Mon Sep 17 00:00:00 2001 From: dshukertjr <18113850+dshukertjr@users.noreply.github.com> Date: Wed, 29 Nov 2023 12:00:26 +0900 Subject: [PATCH] rename flow to type --- src/GoTrueClient.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GoTrueClient.ts b/src/GoTrueClient.ts index c12addc78..f2935e406 100644 --- a/src/GoTrueClient.ts +++ b/src/GoTrueClient.ts @@ -500,10 +500,10 @@ export default class GoTrueClient { } private async _exchangeCodeForSession(authCode: string): Promise { - 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',