Skip to content

Bugfix : Ensure emailVerified is not set to true in Spotify Auth sample - #1214

Merged
jhuleatt merged 2 commits into
firebase:mainfrom
KrrishSR4:patch-1
Oct 5, 2026
Merged

jhuleatt merged 2 commits into
firebase:mainfrom
KrrishSR4:patch-1

Conversation

@KrrishSR4

Copy link
Copy Markdown
Contributor

Problem

In the Spotify Auth sample, customToken.emailVerified was incorrectly set to true by default.
However, Spotify API does not verify user emails. This creates a potential security vulnerability.

Solution

  • Updated functions/index.js to ensure emailVerified is either unset or explicitly set to false.
  • Tested the flow to confirm that emailVerified is not marked as true.

Reference

Fixes #1154

@jhuleatt jhuleatt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spotify does not verify emails, so emailVerified must be false. Pushed a commit covering the updateUser path as well.

@jhuleatt
jhuleatt merged commit 9e665a8 into firebase:main Oct 5, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] in sample: Spotify Auth

2 participants