2
Programmatically signIn a user via service role
Source: supabase/supabase#13238 · opened by @etodanik
I have a use case where I'm essentially implementing something similar to a token exchange flow (
I'm essentially getting a valid token for a game launcher platform, then I create a user if doesn't exist on my Supabase app, and what I want to do is return my supabase token. Right now this seems needlessly complex (I *think* the only way to achieve this is via generating a custom OTP and immediately verifying it? Which seems clumsy).
What I really need is to be able to programmatically signIn() an arbitrary user using their email or phone via the service role, without having to do OTP or present any password.
I'm essentially getting a valid token for a game launcher platform, then I create a user if doesn't exist on my Supabase app, and what I want to do is return my supabase token. Right now this seems needlessly complex (I *think* the only way to achieve this is via generating a custom OTP and immediately verifying it? Which seems clumsy).
What I really need is to be able to programmatically signIn() an arbitrary user using their email or phone via the service role, without having to do OTP or present any password.
No pledges yet. Be the first to back this.
Comments
Similar requests
Expose Supabase-Admin-API to Kong
2 votes · 0 comments
Migration file shows service role key for Webhook Triggers
3 votes · 0 comments
I have an idea about the SignUp method
1 vote · 0 comments
Adding custom API keys with selectable Postgres role for backend components
1 vote · 0 comments
Feature Request: Add a “Billing” Role to Team Member Permissions
1 vote · 0 comments
No comments yet.