diff options
author | 2021-09-03 10:30:40 +0200 | |
---|---|---|
committer | 2021-09-03 10:30:40 +0200 | |
commit | a1166768149ef9d6c948c73b07190008e3207999 (patch) | |
tree | ef1810c6507c148efc802747b3fdbb06ee35186b /internal/gtsmodel/token.go | |
parent | readme typo (diff) | |
download | gotosocial-a1166768149ef9d6c948c73b07190008e3207999.tar.xz |
Review changes
Diffstat (limited to 'internal/gtsmodel/token.go')
-rw-r--r-- | internal/gtsmodel/token.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |