From dcd0b9b682412a2f1d2deaab26eb8094e50b67fd Mon Sep 17 00:00:00 2001 From: Yash Goyal Date: Mon, 17 Jun 2024 11:28:05 +0200 Subject: [PATCH] fix: type errors in verifyOtp (#918) ## What kind of change does this PR introduce? Bug fix ## What is the current behavior? The variables where having types undefined, but they should have the type string or undefined ## What is the new behavior? Fixed the types for the variables --- 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