From 2c11757d211fca6358b26f4d0e7774f7b4aa31ae Mon Sep 17 00:00:00 2001 From: Yash Goyal Date: Tue, 11 Jun 2024 21:29:41 +0200 Subject: [PATCH] fixed some typescript bugs --- src/GoTrueClient.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GoTrueClient.ts b/src/GoTrueClient.ts index 23dfc3042..00958fd65 100644 --- a/src/GoTrueClient.ts +++ b/src/GoTrueClient.ts @@ -722,8 +722,8 @@ export default class GoTrueClient { */ async verifyOtp(params: VerifyOtpParams): Promise { try { - let redirectTo = undefined - let captchaToken = undefined + let redirectTo: string | undefined = undefined + let captchaToken: string | undefined = undefined if ('options' in params) { redirectTo = params.options?.redirectTo captchaToken = params.options?.captchaToken