t3dotgg / chirp

https://xn--uo8h.t3.gg/
393 stars 61 forks source link

Fixes Null usernames when they don't meet requirements. #6

Closed perkinsjr closed 1 year ago

perkinsjr commented 1 year ago

This adds the ability to handle null usernames when they don't comply with Clerk's username requirements and you don't want to let the user type their own.

Feel free to make modifications as needed.

We use user.externalAccounts.find((externalAccount) => externalAccount.provider === "oauth_github")?.username || null so this could be modified if someone is using any OAuth account.

This is until we work on username requirements being set by the user versus Clerk. When Clerk updates that feature we can remove this change.

vercel[bot] commented 1 year ago

@perkinsjr is attempting to deploy a commit to the t3-oss Team on Vercel.

A member of the Team first needs to authorize it.

t3dotgg commented 1 year ago

Legend ty 🙏🙏