supabase / supabase-flutter

Flutter integration for Supabase. This package makes it simple for developers to build secure and scalable products.
https://supabase.com/
MIT License
656 stars 154 forks source link

Sentry reports AuthException(message: Invalid Refresh Token: Refresh Token Not Found, statusCode: 400) #930

Open RCVZ opened 1 month ago

RCVZ commented 1 month ago

Describe the bug Sentry reports a couple of AuthException's All of the reports are on iOS(But those are like 99% of my users)

To Reproduce I have not been able to reproduce this with one of my own devices.

Version: supabase_flutter 2.5.2 supabase 2.1.2 functions_client 2.1.0 gotrue 2.6.1 postgrest 2.1.1 realtime_client 2.0.4 storage_client 2.0.1

Additional context

AuthException(message: Invalid Refresh Token: Refresh Token Not Found, statusCode: 400)
  App                 0x10bb1abd4  GoTrueClient.notifyException (gotrue_client.dart:1206)
  App                 0x10bd5c604  GoTrueClient.recoverSession (gotrue_client.dart:995)
  File "<asynchronous suspension>"
  App                 0x10bd5c32c  SupabaseAuth.recoverSession (supabase_auth.dart:90)
  File "<asynchronous suspension>"
  App                 0x10bb1aa3c  CancelableCompleter.complete.<T> (cancelable_operation.dart:427)
dshukertjr commented 1 month ago

Duplicate of https://github.com/supabase/supabase-flutter/issues/928

RCVZ commented 1 month ago

@dshukertjr This is not a duplicate! This error states refresh token not found.

dshukertjr commented 1 month ago

@RCVZ Next time when you open an issue, you can give the issue a more descriptive name so that it does not look like a duplicate.

dshukertjr commented 1 month ago

Thanks for updating the title!

Donaldd commented 1 month ago

I've been getting the same issue. User is suddenly logged out of the app and then we get this error message (see below) from Sentry. Screenshot 2024-05-17 at 7 06 32 PM