Nin
06/19/2022, 3:14 PMNeedle
06/19/2022, 3:14 PMNin
06/19/2022, 3:15 PMconst serviceToken = Deno.env.get('SUPABASE_SERVICE_ROLE_KEY')
supabaseClient.auth.setAuth(serviceToken!)
var currentUser = await supabaseClient.auth.api.getUser(serviceToken!)
console.log(currentUser)
This returns a nullNin
06/19/2022, 3:20 PMinviteUserByEmail
and prior to that I'm setting the auth to the service role however I get an error saying [ { data: null, error: { message: "User not allowed", status: 401 } } ]
both on local and when deployedgaryaustin
06/19/2022, 3:28 PMNin
06/19/2022, 3:30 PMgaryaustin
06/19/2022, 3:30 PMNin
06/19/2022, 3:32 PMNin
06/19/2022, 3:32 PMNin
06/19/2022, 3:32 PMgaryaustin
06/19/2022, 3:34 PMNin
06/19/2022, 3:35 PMNin
06/19/2022, 3:45 PMNeedle
06/19/2022, 3:45 PM