PricingDocsAcademy
Bluesky ...
Wed, Dec 11, 10:11 PM

How to get access_token from local storage.

  • /attachments/1296096739865919552/1296096740272902194/CleanShot_2024-10-16_at_13.59.542x.png

    MartinF

    1 month ago

    I'm using supabase-js to manage auth. When a user logs in supabase-js adds the access-token and refresh_token etc to local storage. I have an event set up that let's me know when this happens so I can set session cookies and then use the access_token for api calls etc (if i understand correctly.)

    But how do i use get 'Get from local storage" to extract it. I've tried loads of different things and no joy. Any ideas?

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.