GitHub OAuth: user name can be null

The database schema sets the user name not to be null. However, in GitHub, the user name can be null. Will it cause a problem? I'm migrating from next-auth to better-auth.
No description
Solution:
When can the name be null? what causes this?
Jump to solution
3 Replies
Nelson
NelsonOP2mo ago
name: text('name').default('Anonymous').notNull() I end up using this.
Solution
lonelyplanet
lonelyplanet2mo ago
When can the name be null? what causes this?
Nelson
NelsonOP2mo ago
Oh, my mistake. The name will never be null.

Did you find this page helpful?