devtodollars/mvp-boilerplate

supabase refreshing token causes payments to not redirect

Closed this issue · 1 comments

Steps to reproduce:

  1. Login
  2. Wait for a while for localStorage token to expire
  3. Go to payments link in Flutter
  4. User will be logged in, supabase will fetch another refresh token and it'll end

Expected result:

  • should redirect to payments page. Should not go back to home page even when it refreshes (potentially have it so that we don't clear the intialUrl until it goes to a different page)
  • worse case we can redirect even if the screen changes ✅

doing worst case to save time