unmojang / drasl

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

auth: Fix client version not getting persisted #68

Closed evan-goode closed 7 months ago

evan-goode commented 7 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.