diff --git a/clerk/tokens.go b/clerk/tokens.go index 4ac2dba..4a85295 100644 --- a/clerk/tokens.go +++ b/clerk/tokens.go @@ -1,6 +1,7 @@ package clerk import ( + "encoding/json" "fmt" "time" @@ -17,11 +18,12 @@ type TokenClaims struct { type SessionClaims struct { jwt.Claims - SessionID string `json:"sid"` - AuthorizedParty string `json:"azp"` - ActiveOrganizationID string `json:"org_id"` - ActiveOrganizationSlug string `json:"org_slug"` - ActiveOrganizationRole string `json:"org_role"` + SessionID string `json:"sid"` + AuthorizedParty string `json:"azp"` + ActiveOrganizationID string `json:"org_id"` + ActiveOrganizationSlug string `json:"org_slug"` + ActiveOrganizationRole string `json:"org_role"` + Actor json.RawMessage `json:"act,omitempty"` } // DecodeToken decodes a jwt token without verifying it.