Documentation ¶
Index ¶
- Constants
- func GenerateToken(user *Users.User, expiredSeconds int) (tokenString string, err error)
- func RefreshToken(tokenString string) (string, error)
- func UserLoginByEmail(email, password string) (rul *defs.ResUserLogin, err error)
- func ValidateToken(tokenString string) (*Users.User, error)
- type MyCustomClaims
Constants ¶
View Source
const ( KEY string = "JWT-ARY-STARK" DEFAULT_EXPIRE_SECONDS int = 600 // default 10 minutes )
View Source
const (
LOGIN_EXPIRED = 86400
)
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
func RefreshToken ¶
func UserLoginByEmail ¶
func UserLoginByEmail(email, password string) (rul *defs.ResUserLogin, err error)
Types ¶
type MyCustomClaims ¶
Click to show internal directories.
Click to hide internal directories.