exts

package
v0.0.0-...-4de0c4c Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(c *fiber.Ctx) error

func BindAndValidate

func BindAndValidate(c *fiber.Ctx, out any) error

func CheckPermGranted

func CheckPermGranted(atk string, key string, val []byte) error

func DoAuthenticate

func DoAuthenticate(atk, rtk string) (acc *proto.UserInfo, accessTk string, refreshTk string, err error)

func EnsureAuthenticated

func EnsureAuthenticated(c *fiber.Ctx) error

func EnsureGrantedPerm

func EnsureGrantedPerm(c *fiber.Ctx, key string, val any) error

func LinkAccountMiddleware

func LinkAccountMiddleware(c *fiber.Ctx) error

func SetAuthCookies

func SetAuthCookies(c *fiber.Ctx, atk, rtk string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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