hello, I followed the tutorial but the payload I get does not include the email, do you know why ? I have email and everything in the scopes I ticked the first 3 as you did in the previous tutorial
@apps-o3q5 күн бұрын
I fixed it, you need to include email in the scopes, in your tutorial you only included profile and openid const authorizeUrl = oAuth2Client.generateAuthUrl({ access_type: "offline", scope: ["profile", "email"], prompt: "consent", });
@laurafalcon57416 ай бұрын
What cookie library did you use? I tried with cookie-parser but they were never sent to my client side :( I don't know why
@abdiastar64514 ай бұрын
im having the same issue, cookies are not getting sent to my frontend either
@laurafalcon57414 ай бұрын
@@abdiastar6451 I didn't resolve my problem at that time, but I researched it, and the frontend and backend must be hosted on the same domain. Sorry for my English.
@abdiastar64514 ай бұрын
why is it borderline impossible to send the token in a cookie to the frontend? im so close to breaking my laptop rn
@rezhabahari4 ай бұрын
on the video min 5.25 , you cant set cookie on a cross origin basis. ive once tried, and it worked, but it is buggy and requires a bit of tinkering on the backend side
@abdiastar64514 ай бұрын
@@rezhabahari what exactly did you do to fix it? can you walk me through it?
@rezhabahari3 ай бұрын
@@abdiastar6451 app.set("trust proxy", 1); Mind you, It was buggy