Calling auto-fetch APIs after one other has returned an access_token

  • martinf4630-1351986032597274715

    MartinF

    7 days ago

    I’m building some logic around Supabase auth and have an edge function I call during SSR that returns an access_token in a http-only cookie from the refreshtokeb I’ve sent The issue I have is that other auto fetch APIs need the access token for auth Sometimes it works sometimes it doesn’t as not sure how to set any order of operation. What’s the Toddle way to deal with this? I have APIs in different components that need to know when to go

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.