Skip to content

Commit 9333704

Browse files
authored
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
1 parent 9efd597 commit 9333704

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/auth-js/src/GoTrueClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,8 @@ export default class GoTrueClient {
722722
*/
723723
async verifyOtp(params: VerifyOtpParams): Promise<AuthResponse> {
724724
try {
725-
let redirectTo = undefined
726-
let captchaToken = undefined
725+
let redirectTo: string | undefined = undefined
726+
let captchaToken: string | undefined = undefined
727727
if ('options' in params) {
728728
redirectTo = params.options?.redirectTo
729729
captchaToken = params.options?.captchaToken

0 commit comments

Comments
 (0)