Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New error code is missing in error object #884

Open
2 tasks done
melchiorb opened this issue Apr 20, 2024 · 0 comments
Open
2 tasks done

New error code is missing in error object #884

melchiorb opened this issue Apr 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@melchiorb
Copy link

melchiorb commented Apr 20, 2024

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

The new error code (which is correctly sent by the server) is not accessible in auth-js.

Example when using non existend email address on signin:

Server response:
{"code":"otp_disabled","message":"Signups not allowed for otp"}

The error object returned by "supabase.auth.signInWithOtp":
error.code = undefined
error.message = "Signups not allowed for otp"

Expected behavior

error.code = "otp_disabled"

System information

  • Version of auth-js: 2.63.1
@melchiorb melchiorb added the bug Something isn't working label Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant