fix(oauth): normalize email claim to lowercase and trim before account lookup and registration (#26841)

* fix(oauth): normalize email claim to lowercase before account lookup and registration

* test(auth): add test for OAuth email case normalization

* chore: clean up

---------

Co-authored-by: Jason Rasmussen <jason@rasm.me>
This commit is contained in:
Timothy Dobras
2026-04-16 18:41:42 +03:00
committed by GitHub
parent 88815a0345
commit d046f16860
3 changed files with 29 additions and 9 deletions
+1 -1
View File
@@ -259,7 +259,7 @@ describe(`/oauth`, () => {
accessToken: expect.any(String),
isAdmin: false,
name: 'OAuth User',
userEmail: 'oauth-RS256-token@immich.app',
userEmail: 'oauth-rs256-token@immich.app',
userId: expect.any(String),
});
});