FeatureFuel
1

Forcefully create a managed user session.

Source: supabase/supabase#33449 · opened by @ralusek
I have a scenario wherein a user is being redirected from an other site, sent with a token as a query param. This token is sufficient within my own application that I can confidently verify the user is who they say they are. I'd like to create a session on behalf of this user such that supabase takes over with a refresh/access token and treats them as a fully authenticated user.

Basically, on my backend, I'll be sent this token from a client. I then want to do something like

supabase.auth.createSessionForUser({ userId: 'their_supabase_auth_user_id' });

And from there I get this session to the client, after which supabase client manages the access/refresh token as usual.

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