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: #1167

Open
emarin opened this issue Oct 6, 2024 · 0 comments
Open

[BUG] in sample: #1167

emarin opened this issue Oct 6, 2024 · 0 comments

Comments

@emarin
Copy link

emarin commented Oct 6, 2024

Which sample has a bug?

Node-1st-gen/spotify-auth

How to reproduce the issue

follow the readme.

Upon trying to login, the "token" function fails with "Error in the token Function: Error: State cookie not set or expired. Maybe you took too long to authorize. Please try again.". Location of error in code is https://github.com/firebase/functions-samples/blob/main/Node-1st-gen/spotify-auth/functions/index.js#L69

This is because the state cookie is not present in the request, hence the cookie verification fails
I have tried on Chrome and Safari

Debug output

Login popup shows error message : Error in the token Function: Error: State cookie not set or expired. Maybe you took too long to authorize. Please try again.

Expected behavior

Successful login

Actual behavior

Login failure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant