Skip to content

Commit

Permalink
fix: swap to more specific error
Browse files Browse the repository at this point in the history
  • Loading branch information
J0 committed Aug 29, 2024
1 parent 35785cf commit 8d3fc0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AuthError, CustomAuthError } from './errors'
import { AuthError, UserNotFoundError } from './errors'
import { Fetch } from './fetch'

/** One of the providers supported by GoTrue. */
Expand Down Expand Up @@ -228,7 +228,7 @@ export type UserResponse =
data: {
user: null
}
error: CustomAuthError
error: UserNotFoundError
}

export interface Session {
Expand Down Expand Up @@ -921,7 +921,7 @@ export type AuthMFAEnrollResponse =
friendly_name?: string

/** Phone number of the MFA factor in E.164 format. Used to send messages */
phone: string
phone: string
}
error: null
}
Expand Down

0 comments on commit 8d3fc0b

Please sign in to comment.