SupabaseS
Supabase2y ago
phil

TS2339: Property  weak_password  does not exist on type

I have an issue with node_modules/@supabase/gotrue-js/src/lib/fetch.ts and specifically _sessionResponsePassword

weak_password does not exist on type and so deploys for me break due to the typescript error.

node_modules/@supabase/gotrue-js/src/lib/fetch.ts(191,19): error TS2339: Property 'weak_password' does not exist on type '{ user: User; session: Session; weak_password?: WeakPassword; } | { user: null; session: null; }'.
  Property 'weak_password' does not exist on type '{ user: null; session: null; }'.
node_modules/@supabase/gotrue-js/src/lib/helpers.ts(101,30): error TS2556: A spread argument must either have a tuple type or be passed to a rest parameter.

Has anyone encountered this?

package:
"@supabase/auth-helpers-nextjs": "^0.9.0", "@supabase/ssr": "^0.1.0", "@supabase/supabase-js": "^2.39.3", "typescript": "^5.3.3"
image.png
Was this page helpful?