mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
26 lines
422 B
Go
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:"-"`
|
|
}
|