22 lines
305 B
Go
22 lines
305 B
Go
|
package model
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
|
||
|
"github.com/google/uuid"
|
||
|
)
|
||
|
|
||
|
type Token struct {
|
||
|
ID uuid.UUID
|
||
|
RefreshTokenID uuid.UUID
|
||
|
Expiration time.Time
|
||
|
Subjet string
|
||
|
Audiences []string
|
||
|
Scopes []string
|
||
|
}
|
||
|
|
||
|
type RefreshToken struct {
|
||
|
ID uuid.UUID
|
||
|
AuthTime time.Time
|
||
|
}
|