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:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user