Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

omitEmpty field from claim json

Neeraj Gupta162ce32b8ed8
diff --git a/server/ente/jwt/jwt.go b/server/ente/jwt/jwt.go
index 567ff6bfb2..94cfa995f2 100644
--- a/server/ente/jwt/jwt.go
+++ b/server/ente/jwt/jwt.go
@@ -20,10 +20,10 @@ func (c ClaimScope) Ptr() *ClaimScope {
}
type WebCommonJWTClaim struct {
- UserID int64 `json:"userID"`
- ExpiryTime int64 `json:"expiryTime"`
- Email string `json:"email"`
- ClaimScope *ClaimScope `json:"claimScope"`
+ UserID int64 `json:"userID,omitempty"`
+ ExpiryTime int64 `json:"expiryTime,omitempty"`
+ Email string `json:"email,omitempty"`
+ ClaimScope *ClaimScope `json:"claimScope,omitempty"`
}
func (w *WebCommonJWTClaim) GetScope() ClaimScope {