auth

package
v0.0.0-...-c86e3d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRoutes

func ApplyRoutes(r *gin.RouterGroup, jwtAuth jwt.Auth)

ApplyRoutes All routes from authentification

func Login

func Login(c *gin.Context)

Login An account @Summary Connect user to app @Description Using JWT auth (look headers for token) @Tags auth @Accept json @Produce json @Param body body user.requestLogin true "Account to login" @Success 200 {string} string "Empty" @Failure 500 {object} pkg.HTTPError "Error" @Router /login [post]

func Register

func Register(c *gin.Context)

Register route for creating account @Summary Create new account @Description Using JWT auth @Tags auth @Accept json @Produce json @Param body body user.requestRegister true "Add account" @Success 200 {object} pkg.HTTPStatus "Status" @Failure 500 {object} pkg.HTTPError "Error" @Router /register [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL