Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] in sample: LinkedIn Auth __session cookie does not persist when function is called by popup.html #876

Open
decheftw opened this issue Jun 2, 2021 · 1 comment

Comments

@decheftw
Copy link

decheftw commented Jun 2, 2021

Which sample has a bug?

LinkedIn Auth

How to reproduce the issue

Use popup.html and cloud functions as expected, however, due to node-linkedin deprecation, use axios to query for profile data. I would be willing to submit this for a PR once this bug is figured out.

Steps to set up and reproduce

Follow LinkedIn sign in flow, redirect function -> token function, etc.

Debug output

req.cookies.__session returns null. However, if the token function is called manually (i.e., console.log popup.html's script.src and following the link), the __session cookie is there.

Errors in the
console logs

Screenshots
cookie in redirect
Cookie in redirect
cookie when called by popup
Cookie in token function when called by popup
cookie when called manually
Cookie in token function when called manually

Expected behavior

Cookie is null

Actual behavior

Cookie persists

@ghumman3131
Copy link

Hi, I am facing the same issue. Have you resolved this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants