Documentation ¶
Index ¶
Constants ¶
View Source
const MEDODS_DB_NAME = "medods"
View Source
const REFRESH_TOKENS_COLLECTION = "refreshes"
Variables ¶
View Source
var ErrEmptyConnectionString = errors.New("received an empty database connection string")
View Source
var ErrNoRefreshTokenPassed = errors.New("Found no refresh token in your request")
View Source
var ErrReceivedNoGUID = errors.New("No appropriate GUID passed in query parameters;")
View Source
var ErrTokenInvalid = errors.New("Provided JWT token is invalid")
View Source
var ErrTokenOccupied = errors.New("Token for this GUID already exists;")
Functions ¶
This section is empty.
Types ¶
type AuthTarget ¶
type AuthTarget struct {
GUID string `form:"guid" binding:"required"`
}
func (*AuthTarget) HasValidGUID ¶
func (at *AuthTarget) HasValidGUID() bool
func (*AuthTarget) PutInOrderGUID ¶
func (at *AuthTarget) PutInOrderGUID() error
type AuthTokenPair ¶
type RefreshTokenModel ¶
type WrapperDB ¶
func InitWrapperDB ¶
func (*WrapperDB) DeleteRefreshTokenHash ¶
func (*WrapperDB) FindIfContains ¶
func (*WrapperDB) GetRefreshTokenHash ¶
Click to show internal directories.
Click to hide internal directories.