functions-samples
functions-samples copied to clipboard
[BUG] in sample: linkedin-auth
I follow the code to a tee, and it keeps coming back "Error in the token Function: undefined"
I'm having the same issue.
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.
Has anyone found a solution to this yet? PR #852 did not resolve this issue for me @tomcurran.
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?
Confirmed that #852 pull request does not fix this issue too.
Also confirmed that the pull request doesn't work, trying some things now