internal -> storage; split users into an interface
This commit is contained in:
parent
0e7949b1a0
commit
41cd9c735b
7 changed files with 325 additions and 250 deletions
25
example/server/storage/token.go
Normal file
25
example/server/storage/token.go
Normal file
|
@ -0,0 +1,25 @@
|
|||
package storage
|
||||
|
||||
import "time"
|
||||
|
||||
type Token struct {
|
||||
ID string
|
||||
ApplicationID string
|
||||
Subject string
|
||||
RefreshTokenID string
|
||||
Audience []string
|
||||
Expiration time.Time
|
||||
Scopes []string
|
||||
}
|
||||
|
||||
type RefreshToken struct {
|
||||
ID string
|
||||
Token string
|
||||
AuthTime time.Time
|
||||
AMR []string
|
||||
Audience []string
|
||||
UserID string
|
||||
ApplicationID string
|
||||
Expiration time.Time
|
||||
Scopes []string
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue