Admin operation with user key
I have some internally managed users in my app. I need to do a backend operation on my python server for these users while they are not around and I need to do it as the user and not from my service key. Is there a way to use my service key to get a jwt from the user and make a client with it (in python)? Can i get a magic link from the sdk and exchange that for a token?
2 Replies
The only way I've seen this done is to call admin.generateLink then take the OTP or token returned in that and call verifyOtp.
https://supabase.com/docs/reference/javascript/auth-admin-generatelink
JavaScript: Generate an email link | Supabase Docs
Supabase API reference for JavaScript: Generate an email link
perfect thats what i was gonna do. Thank you