supabase / supabase-js

An isomorphic Javascript client for Supabase. Query your Supabase database, subscribe to realtime events, upload and download files, browse typescript examples, invoke postgres functions via rpc, invoke supabase edge functions, query pgvector.
https://supabase.com
MIT License
2.87k stars 221 forks source link

MFA Verify is throwing internal server error: 500 despite correct code #961

Closed karsanU closed 2 months ago

karsanU commented 3 months ago

Bug report

Describe the bug

Unable to verify an enrolled factor.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Enroll a new totp MFA factor
    await supabase.auth.mfa.enroll({ factorType: 'totp' });
  2. Create a challenge for the factor
    await supabase.auth.mfa.challenge({ factorId });
  3. Verify the factor
    await supabase.auth.mfa.verify({
      factorId,
      challengeId,
      code: token,
    });
  4. Throws an internal server error if it is the correct code sent.
    If an incorrect code is sent, it tells you that Invalid TOTP code entered.

Expected behavior

It should verify the factor successfully.

Screenshots

image

System information

Additional context

{
    "code": 500,
    "msg": "Internal server error",
    "error_id": "84dddb65c47436d2-YYZ"
}
jordiup commented 3 months ago

Wondering if there's an outage?

https://status.supabase.com/

Also seeing this on verify & logout

image
karsanU commented 3 months ago

Wondering if there's an outage?

https://status.supabase.com/

Also seeing this on verify & logout

image

I believe we are dealing with different errors. My issue has been going on for a while and it's an internal server error.

J0 commented 3 months ago

Hey @karsanU,

Sorry to hear about the issue. Do you mind checking the Logs > Auth tab to see if there are any additional details? Alternatively feel free to open a support ticket and we'll get back to you as soon as we can