Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(c echo.Context) error

Login is a handler func that logs in a user

func RunServer

func RunServer()

RunServer runs user server

func Signup

func Signup(c echo.Context) error

Signup is a handler func that signs up a new user

Types

type CustomClaims

type CustomClaims struct {
	ID    string `json:"id"`
	Admin bool   `json:"admin"`
	jwt.StandardClaims
}

CustomClaims for jwt configuration