functions-samples icon indicating copy to clipboard operation
functions-samples copied to clipboard

[BUG] in sample: linkedin-auth

Open taylorchance opened this issue 4 years ago • 6 comments

I follow the code to a tee, and it keeps coming back "Error in the token Function: undefined"

taylorchance avatar Jan 28 '21 21:01 taylorchance

I'm having the same issue.

urwolf avatar Feb 17 '21 08:02 urwolf

The problem is, req.cookies.state in the function, "exports.token" of the index.js file of linkedin-auth is null. So the function tokenReceived inside the pop.html file is receiving the data parameter as empty and that is showing this error.

urwolf avatar Feb 17 '21 13:02 urwolf

Has anyone found a solution to this yet? PR #852 did not resolve this issue for me @tomcurran.

decheftw avatar May 31 '21 23:05 decheftw

I've found that after #852 my __session cookie does not persist in the token function. However, if I call the token function manually, (console log script.src in popup.html and following the link), the cookie does persist. Any ideas?

decheftw avatar Jun 02 '21 22:06 decheftw

Confirmed that #852 pull request does not fix this issue too.

chrismatthieu avatar Jul 22 '21 21:07 chrismatthieu

Also confirmed that the pull request doesn't work, trying some things now

sanozie avatar Aug 17 '21 03:08 sanozie