Barbapapazes / gavarnie

SaaS - Pre-configured and ready-to-use features to help you start your full-stack NuxtHub project faster.
https://gavarnie.barbapapazes.dev
MIT License
136 stars 12 forks source link

Login with Github fails when name is null #22

Closed nilloq closed 3 weeks ago

nilloq commented 1 month ago

User name is not mandatory in a Github profile, so in Github OAuth response the "name" field can be null. In that case the createUser fails with a 500 error : "D1_ERROR: NOT NULL constraint failed: users.name: SQLITE_CONSTRAINT"

My suggestion would be to use github login in user.name when github name is not defined.

Barbapapazes commented 3 weeks ago

Hey 👋,

Thanks for noticing this!