Skip to content

Commit

Permalink
fix: type errors in verifyOtp (#918)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
yashgo0018 authored Jun 17, 2024
1 parent f84fb50 commit dcd0b9b
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 @@ -722,8 +722,8 @@ export default class GoTrueClient {
*/
async verifyOtp(params: VerifyOtpParams): Promise<AuthResponse> {
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
Expand Down

0 comments on commit dcd0b9b

Please sign in to comment.