From cf5c6b9d44053db699721519971582f38aa9c678 Mon Sep 17 00:00:00 2001 From: Jakub Zych Date: Mon, 5 Oct 2026 21:46:59 +0200 Subject: [PATCH] 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 --- models/oauth_identity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/oauth_identity.go b/models/oauth_identity.go index 5d45be4..34ef83b 100644 --- a/models/oauth_identity.go +++ b/models/oauth_identity.go @@ -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"`