Skip to content

Commit cf62538

Browse files
committed
Minor correction
1 parent 24ef61d commit cf62538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/User.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class User {
5656

5757
export function getUserAttribute(user: User, name: string): UserAttributeValue | null | undefined {
5858
switch (name) {
59-
case <WellKnownUserObjectAttribute>"Identifier": return user.identifier;
59+
case <WellKnownUserObjectAttribute>"Identifier": return user.identifier ?? "";
6060
case <WellKnownUserObjectAttribute>"Email": return user.email;
6161
case <WellKnownUserObjectAttribute>"Country": return user.country;
6262
default: return user.custom?.[name];

0 commit comments

Comments
 (0)