unmojang / drasl

Yggdrasil-compatible API server for Minecraft
GNU General Public License v3.0
69 stars 11 forks source link

auth: Fix client version not getting persisted #68

Closed evan-goode closed 2 months ago

evan-goode commented 2 months ago

Gorm won't save changes to associated objects unless you use a gorm.Session with FullSaveAssociations: true.

Fixes a serious bug where clients can't POST /authenticate with an existing clientToken, they can only refresh.