FeatureFuel
3

Simple idea to sync client and server (cookie) access token

Source: supabase/supabase#6472 · opened by @fergusmeiklejohn
Using Remix, we also need to have the access token in a cookie so we can authenticate server side.
Problem: how to handle refreshing the token? The supabase client does so itself so perhaps the simplest solution is to allow us to pass a function to the function the supabase-js library is calling to refresh the access token? Then whenever the client refreshes we can call our api and update the access token on the cookie.

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests