Cartiers
08/18/2021, 6:54 PMjs
const { data: user, error } = await supabase.auth.api.getUser(
req.cookies["sb:token"]
);
I would like to add the users access token returned by the provider as i need it to interact with Discords APICartiers
08/18/2021, 6:58 PMjson
{
"id": "uuid",
"aud": "authenticated",
"role": "authenticated",
"email": "email",
"email_confirmed_at": "2021-08-18T03:41:30.193671Z",
"phone": "",
"confirmed_at": "2021-08-18T03:41:30.193671Z",
"last_sign_in_at": "2021-08-18T18:46:02.790896Z",
"app_metadata": {
"provider": "discord"
},
"user_metadata": {
"avatar_url": "https://cdn.discordapp.com/avatars/387313922736259074/c853d6e80408c2dc9abdcae063810fb2.png",
"full_name": "Cartiers",
"provider_id": "387313922736259074"
},
"created_at": "2021-08-18T03:41:30.189454Z",
"updated_at": "2021-08-18T03:41:30.189454Z"
}
Cartiers
08/18/2021, 6:59 PMCartiers
08/18/2021, 7:34 PMjs
const { user, error } = await supabase.auth.update({
data: { hello: "world" },
});
Cartiers
08/18/2021, 7:35 PM