Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenewTokens ¶
func RenewTokens(c *fiber.Ctx) error
RenewTokens method for renew access and refresh tokens. @Description Renew access and refresh tokens. @Summary renew access and refresh tokens @Tags Token @Accept json @Produce json @Param refresh_token body string true "Refresh token" @Success 200 {object} requests.SignInResponse @Security ApiKeyAuth @Router /v1/token/renew [post]
func UserSignIn ¶
func UserSignIn(c *fiber.Ctx) error
UserSignIn method to auth user and return access and refresh tokens. @Description Auth user and return access and refresh token. @Summary auth user and return access and refresh token @Tags User @Accept json @Produce json @Param email body string true "User Email" @Param password body string true "User Password" @Success 200 {object} requests.SignInResponse @Router /v1/user/sign/in [post]
func UserSignOut ¶
func UserSignOut(c *fiber.Ctx) error
UserSignOut method to de-authorize user and delete refresh token from Redis. @Description De-authorize user and delete refresh token from Redis. @Summary de-authorize user and delete refresh token from Redis @Tags User @Accept json @Produce json @Success 204 {string} status "ok" @Security ApiKeyAuth @Router /v1/user/sign/out [post]
func UserSignUp ¶
func UserSignUp(c *fiber.Ctx) error
UserSignUp method to create a new user. @Description Create a new user. @Summary create a new user @Tags User @Accept json @Produce json @Param email body string true "Email" @Param password body string true "Password" @Param user_role body string true "User role" @Success 200 {object} entities.User @Router /v1/user/sign/up [post]
Types ¶
This section is empty.