Skip to content

fix(auth): fixes userattributes type#2139

Merged
staaldraad merged 1 commit intomasterfrom
etienne/correct_userattribute_type
Feb 26, 2026
Merged

fix(auth): fixes userattributes type#2139
staaldraad merged 1 commit intomasterfrom
etienne/correct_userattribute_type

Conversation

@staaldraad
Copy link
Member

🔍 Description

The UserAttributes type used currentPassword (camel-case) but the Auth server expects current_password (snake-case)

What changed?

UserAttribute type

Why was this change needed?

Bad typing would cause the Auth server to reject all password change attempts if current_password was required

📝 Additional notes

This feature isn't active yet on any Auth servers, but will be soon

The UserAttributes type used currentPassword (camel-case) but the Auth server expects
current_password (snake-case)
@staaldraad staaldraad requested review from a team as code owners February 26, 2026 07:49
@github-actions github-actions bot added the auth-js Related to the auth-js library. label Feb 26, 2026
@coderabbitai
Copy link

coderabbitai bot commented Feb 26, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Cache: Disabled due to Reviews > Disable Cache setting

Disabled knowledge base sources:

  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between c35fba4 and 81bc902.

📒 Files selected for processing (1)
  • packages/core/auth-js/src/lib/types.ts

📝 Walkthrough

Summary by CodeRabbit

  • API Updates
    • The password field in user attributes has been renamed from currentPassword to current_password. Users should update any code referencing the old field name to use the new naming convention.

Walkthrough

This change renames a single optional property in the UserAttributes interface from currentPassword to current_password in the auth-js types file. The modification updates the property naming convention while preserving all other functionality and interface behavior.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 26, 2026

Open in StackBlitz

@supabase/auth-js

npm i https://pkg.pr.new/@supabase/auth-js@2139

@supabase/functions-js

npm i https://pkg.pr.new/@supabase/functions-js@2139

@supabase/postgrest-js

npm i https://pkg.pr.new/@supabase/postgrest-js@2139

@supabase/realtime-js

npm i https://pkg.pr.new/@supabase/realtime-js@2139

@supabase/storage-js

npm i https://pkg.pr.new/@supabase/storage-js@2139

@supabase/supabase-js

npm i https://pkg.pr.new/@supabase/supabase-js@2139

commit: 81bc902

Copy link
Contributor

@fadymak fadymak left a comment

Choose a reason for hiding this comment

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

🧹 🧹 🧹

@staaldraad staaldraad merged commit 8416b11 into master Feb 26, 2026
22 checks passed
@staaldraad staaldraad deleted the etienne/correct_userattribute_type branch February 26, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auth-js Related to the auth-js library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants