Skip to content

tokens it refreshes the token until the rate limit is reached #829

Closed

Description

@BharathKumar-99

from yesterday iam getting a issue with tokens it refreshes the token until the rate limit is reached can any one help

iam not sure if this helps but here is my code

static Future initialize() => Supabase.initialize( url: KeyConstants.SUPABASE_URL!, anonKey: KeyConstants.SUPABASE_ANON_KEY!, debug: true);

this the auth change stream code
final supabaseAuth = SupaFlow.client.auth.onAuthStateChange .map<String>((response) => response.session!.user.id) .switchMap((id) => id.isEmpty ? Stream.value(null) : getFilteredRowStream(id).map((row) => log(row.toString()))) .asBroadcastStream();

iam refresh token should not triggers until the code 429 is thrown

I am using supabase_flutter: ^2.3.2

Activity

  1. added
    bug
    on Feb 7, 2024
  2. added
    auth
    on Feb 7, 2024
  3. dshukertjr commented on Feb 7, 2024

    @dshukertjr
    Member

    Again, we need you to follow the issue format for us to assist you. Please provide a detailed step-by-step of the actions you are performing and provide clear expected results and actual results you are getting with the issue you are facing.

  4. BharathKumar-99 commented on Feb 7, 2024

    @BharathKumar-99
    Author

    iam not sure how to reproduce this as iam getting this error with out soing anything when app starts

  5. dshukertjr commented on Feb 7, 2024

    @dshukertjr
    Member

    So you are getting the error as a result of calling Supabase.initialize()? Could you copy and paste the content of the error here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    authbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions