auth

package
v0.0.5-dev Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDataFromJWT

func GetDataFromJWT(c *fiber.Ctx) error

Gets user data (their ID) from the JWT middleware. Should be executed after calling 'JWTMiddleware()'.

func JWTMiddleware

func JWTMiddleware() fiber.Handler

Guards a specific endpoint in the API.

func NewAuthHandler

func NewAuthHandler(authRoute fiber.Router, us user.UserService, mail *mailClient.Mailer, i18n *i18n.I18n)

Creates a new authentication handler.

Types

type AuthHandler

type AuthHandler struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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