Skip to content

Commit

Permalink
fix(email): allow empty names when registering users
Browse files Browse the repository at this point in the history
  • Loading branch information
BastiDood committed Aug 7, 2024
1 parent bedf969 commit 5f07629
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions model/src/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ export const IdToken = object({
hd: literal('up.edu.ph'),
email: pipe(string(), email()),
email_verified: boolean(),
given_name: string(),
family_name: string(),
given_name: optional(string(), ''),
family_name: optional(string(), ''),
picture: optional(pipe(string(), url()), ''),
nonce: string(),
picture: pipe(string(), url()),
});

export type IdToken = InferOutput<typeof IdToken>;

0 comments on commit 5f07629

Please sign in to comment.