fix(14.1): omit OAuth identity profile_data from JSON marshaling

Hidden() already listed profile_data, but encoding/json would still emit
the Jsonable field. Tag it json:"-" so the DATA-07 marshal backstop holds.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jakub Zych
2026-10-05 21:46:59 +02:00
parent f0d3b8b21d
commit cf5c6b9d44

View File

@@ -15,7 +15,7 @@ type OAuthIdentity struct {
AccessToken lagoon.Encrypted `gorm:"column:access_token" json:"-"`
RefreshToken lagoon.Encrypted `gorm:"column:refresh_token" json:"-"`
TokenExpiresAt *time.Time `gorm:"column:token_expires_at"`
ProfileData lagoon.Jsonable[map[string]any] `gorm:"column:profile_data"`
ProfileData lagoon.Jsonable[map[string]any] `gorm:"column:profile_data" json:"-"`
LinkedAt *time.Time `gorm:"column:linked_at"`
CreatedAt time.Time `gorm:"column:created_at"`
UpdatedAt time.Time `gorm:"column:updated_at"`