Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TokenValid ¶
Types ¶
type AccessDetails ¶
type AuthInterface ¶
type AuthInterface interface { CreateAuth(string, *TokenDetails) error FetchAuth(string) (string, error) DeleteRefresh(string) error DeleteTokens(*AccessDetails) error }
type TokenDetails ¶
type TokenInterface ¶
type TokenInterface interface { CreateToken(userId string) (*TokenDetails, error) ExtractTokenMetadata(*http.Request) (*AccessDetails, error) }
Click to show internal directories.
Click to hide internal directories.