Documentation ¶
Index ¶
- Variables
- func CurrentUser(c *fiber.Ctx, claims *jwt.RegisteredClaims) error
- func GetJwtToken(user string) (string, string, int)
- func GetUserByEmail(c *fiber.Ctx) error
- func Login(c *fiber.Ctx) error
- func RefreshToken(c *fiber.Ctx) error
- func Signup(c *fiber.Ctx) error
- func VerifyJwtSess(token string) (string, bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SecretKey = []byte(os.Getenv("JWT_KEY"))
)
Functions ¶
func CurrentUser ¶
func CurrentUser(c *fiber.Ctx, claims *jwt.RegisteredClaims) error
func GetUserByEmail ¶
func GetUserByEmail(c *fiber.Ctx) error
func RefreshToken ¶
func RefreshToken(c *fiber.Ctx) error
func VerifyJwtSess ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.