Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#1154·functions-samples

[BUG] in sample: Spotify Auth

Author: millscanCreated Jul 14, 2024Updated Jul 14, 2024
Labelstype: bug

Which sample has a bug?

Spotify Auth https://github.com/firebase/functions-samples/blob/main/Node-1st-gen/spotify-auth/functions/index.js

How to reproduce the issue

N/A

Debug output

N/A

Expected behavior

customToken.emailVerified should be unset or set to false upon creation.

The Spotify API documentation states that emails are not verified by Spotify. Incorrectly setting emailVerified to true can create security vulnerabilities.

Actual behavior

customToken.emailVerified is set to true upon creation

Source: firebase/functions-samples

View original on GitHubView discussion on GitHub