grafana/pkg/services/auth/model.go
2019-01-15 15:16:20 +01:00

26 lines
422 B
Go

package auth
import (
"errors"
)
// Typed errors
var (
ErrAuthTokenNotFound = errors.New("User auth token not found")
)
type userAuthToken struct {
Id int64
UserId int64
AuthToken string
PrevAuthToken string
UserAgent string
ClientIp string
AuthTokenSeen bool
SeenAt int64
RotatedAt int64
CreatedAt int64
UpdatedAt int64
unhashedToken string `xorm:"-"`
}