handlers

package
v0.0.0-...-076c94d Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(c echo.Context) error

Types

type Credentials

type Credentials struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type JwtCustomClaims

type JwtCustomClaims struct {
	Name  string `json:"name"`
	Admin bool   `json:"admin"`
	jwt.RegisteredClaims
}

JwtCustomClaims are custom claims extending default ones. See https://github.com/golang-jwt/jwt for more examples

type LoginPayload

type LoginPayload struct {
	User Credentials `json:"user"`
}

type UserPayload

type UserPayload struct {
	User models.User `json:"user"`
}

Jump to

Keyboard shortcuts

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