diff options
author | 2021-09-08 21:15:45 +0100 | |
---|---|---|
committer | 2021-09-08 21:15:45 +0100 | |
commit | f44cc5178224719fda299dc9f5a65763b1b23f51 (patch) | |
tree | 6c8dd9e0c5b36e3acb2011f0ef69ac689c30000c /internal/gtsmodel/token.go | |
parent | Merge pull request #195 from NyaaaWhatsUpDoc/update/bun-library (diff) | |
parent | Merge remote-tracking branch 'upstream/main' into update/oauth-library (diff) | |
download | gotosocial-f44cc5178224719fda299dc9f5a65763b1b23f51.tar.xz |
Merge pull request #196 from NyaaaWhatsUpDoc/update/oauth-library
Update oauth library -> v4.3.2-SSB
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 5fa96e915..8058d9edf 100644 --- a/internal/gtsmodel/token.go +++ b/internal/gtsmodel/token.go @@ -26,7 +26,7 @@ type Token struct { CreatedAt time.Time `validate:"-" bun:"type:timestamp,nullzero,notnull,default:current_timestamp"` // when was item created UpdatedAt time.Time `validate:"-" bun:"type:timestamp,nullzero,notnull,default:current_timestamp"` // when was item last updated 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 + UserID string `validate:"required,ulid" bun:"type:CHAR(26),nullzero"` // 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:"required" bun:",nullzero,notnull"` // Oauth scope Code string `validate:"-" bun:",pk,nullzero,notnull,default:''"` // Code, if present |