How to get access_token from local storage.

  • martinf4630-1296096739865919552

    MartinF

    5 months 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?
    1296096740272902194-

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.