Documentation ¶
Index ¶
- Variables
- func GetTokenUserID(token *jwt.Token) string
- func Login(c context.Context, username, password string) (*models.LoginPayload, error)
- func NewToken(user *models.User) *jwt.Token
- func SignToken(token *jwt.Token) (string, error)
- func UpdatePassword(c context.Context, userID, password string) error
- func ValidateToken(tokenString string) (*jwt.Token, error)
- type Claims
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Filestore filestore.Filestore Datastore datastore.Datastore )
Functions ¶
func GetTokenUserID ¶
func GetTokenUserID(token *jwt.Token) string
func ValidateToken ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.