20 lines
335 B
Go
20 lines
335 B
Go
package domain
|
|
|
|
import "time"
|
|
|
|
type RefreshToken struct {
|
|
ID int64
|
|
UserID int64
|
|
Token string
|
|
ExpiresAt time.Time
|
|
CreatedAt time.Time
|
|
Revoked bool
|
|
}
|
|
|
|
// I used this because i was getting an error with the ValidInt64
|
|
// when it was being unmarshaled by the jwt
|
|
type NullJwtInt64 struct {
|
|
Value int64
|
|
Valid bool
|
|
}
|