From a1166768149ef9d6c948c73b07190008e3207999 Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Fri, 3 Sep 2021 10:30:40 +0200 Subject: Review changes --- internal/gtsmodel/token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/gtsmodel/token.go') diff --git a/internal/gtsmodel/token.go b/internal/gtsmodel/token.go index 4188ea9eb..5fa96e915 100644 --- a/internal/gtsmodel/token.go +++ b/internal/gtsmodel/token.go @@ -28,7 +28,7 @@ type Token struct { ClientID string `validate:"required,ulid" bun:"type:CHAR(26),nullzero,notnull"` // ID of the client who owns this token UserID string `validate:"required,ulid" bun:"type:CHAR(26),nullzero,notnull"` // ID of the user who owns this token RedirectURI string `validate:"required,uri" bun:",nullzero,notnull"` // Oauth redirect URI for this token - Scope string `validate:"omitempty" bun:",nullzero,notnull,default:'read'"` // Oauth scope + Scope string `validate:"required" bun:",nullzero,notnull"` // Oauth scope Code string `validate:"-" bun:",pk,nullzero,notnull,default:''"` // Code, if present CodeChallenge string `validate:"-" bun:",nullzero"` // Code challenge, if code present CodeChallengeMethod string `validate:"-" bun:",nullzero"` // Code challenge method, if code present -- cgit v1.2.3