Documentation ¶
Index ¶
- func CreateAuth(userid uint64, td *TokenDetails) error
- func CreateTodo(c *gin.Context)
- func ExtractToken(r *http.Request) string
- func FetchAuth(authD *AccessDetails) (uint64, error)
- func Login(c *gin.Context)
- func Login0(c *gin.Context)
- func TokenValid(r *http.Request) error
- func VerifyToken(r *http.Request) (*jwt.Token, error)
- type AccessDetails
- type Todo
- type TokenDetails
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAuth ¶
func CreateAuth(userid uint64, td *TokenDetails) error
func CreateTodo ¶
func ExtractToken ¶
func FetchAuth ¶
func FetchAuth(authD *AccessDetails) (uint64, error)
func TokenValid ¶
func VerifyToken ¶
Types ¶
type AccessDetails ¶
func ExtractTokenMetadata ¶
func ExtractTokenMetadata(r *http.Request) (*AccessDetails, error)
type TokenDetails ¶
type TokenDetails struct { AccessToken string RefreshToken string AccessUuid string RefreshUuid string AtExpires int64 RtExpires int64 }
func CreateToken ¶
func CreateToken(userid uint64) (*TokenDetails, error)
Click to show internal directories.
Click to hide internal directories.