tinjaw
09/06/2021, 8:49 PMuser
09/06/2021, 8:50 PMuser
09/06/2021, 8:50 PMuser
09/06/2021, 8:50 PMtinjaw
09/06/2021, 8:50 PMtinjaw
09/06/2021, 8:54 PMfalse
user
09/06/2021, 8:55 PMdavlaha
09/06/2021, 9:04 PMuser_id
for a user if they login via google.
When I call supabase.auth.session();
the user/session object does not give me back the google_id
of the associated user.
Am I missing something or is this not possible?
The provider_token
is not a JWT and I am unsure how to decode it?
SOLVED
I am unsure if this is the best way to go about this but you can hit the following URL and it will give you the below payload: https://www.googleapis.com/oauth2/v3/userinfo?access_token={}
{
"sub": "5464658798469585",
"name": "Test One",
"given_name": "Test One",
"family_name": "Passage",
"picture": "https://lh3.googleusercontent.com/a-/AOh14GgdYczB3s3pCfdaffadfdfadsfdsfafdsfrefrttrbghgp9zKrMLlvDWNpgLjiIpZiN97d=s96-c",
"email": "testone@gmail.com",
"email_verified": true,
"locale": "en"
}
RichCorbs
09/07/2021, 2:09 AMRichCorbs
09/07/2021, 2:22 AMjonny
09/07/2021, 2:31 AMPeanut
09/07/2021, 4:08 AMBEGIN;
SET LOCAL request.jwt.claim.sub = 'YOUR_USER_ID';
SET LOCAL ROLE authenticated;
SELECT * FROM someTableWithRlsEnabled;
COMMIT;
wiverson
09/07/2021, 6:55 AMoskar
09/07/2021, 8:10 AMDeleted User
09/07/2021, 8:16 AMuser
09/07/2021, 9:03 AMa
supabase.from(a)
.select(*)
But i need to include array of b
which belongs to a
like so
[{
bs: [b, b, b]
}]
Thanks in advanceuser
09/07/2021, 9:16 AMsupabase.from(a)
.select(`*, b ()`)
This works
supabase.from(a)
.select(`*, b (*)`)
Leaving this here just if anyone struggles with this as welluser
09/07/2021, 10:48 AMVERCEL_URL
is used by Vercel to define the deployment URL. I ended up creating my own variable and defined the prod URL. It works perfect now.Saad-Mujeeb
09/07/2021, 11:45 AMSeb Toombs
09/07/2021, 11:46 AMSaad-Mujeeb
09/07/2021, 12:07 PMSeb Toombs
09/07/2021, 12:08 PMdrex
09/07/2021, 12:09 PMsoedirgo
09/07/2021, 12:09 PMdrex
09/07/2021, 12:10 PMSaad-Mujeeb
09/07/2021, 12:11 PMSaad-Mujeeb
09/07/2021, 2:02 PMGHOST
09/07/2021, 2:27 PMGHOST
09/07/2021, 2:27 PMGHOST
09/07/2021, 2:27 PM