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.
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.
Comments
Similar requests
Add autoRefresh Option to getUser() to Ensure Session Data is Synced with Latest User State
3 votes · 0 comments
[Auth] Allow indefinite refresh token reuse
5 votes · 0 comments
customize session time box by each flow (short lived session for B2B2C apps)
3 votes · 0 comments
Add automatic session code detection from a specfifc path in the URL in supabase-js
1 vote · 0 comments
Persist session
1 vote · 0 comments
No comments yet.