Documentation ¶
Index ¶
- func AuthMiddleware(c *fiber.Ctx) error
- func BindAndValidate(c *fiber.Ctx, out any) error
- func CheckPermGranted(atk string, key string, val []byte) error
- func DoAuthenticate(atk, rtk string) (acc *proto.UserInfo, accessTk string, refreshTk string, err error)
- func EnsureAuthenticated(c *fiber.Ctx) error
- func EnsureGrantedPerm(c *fiber.Ctx, key string, val any) error
- func LinkAccountMiddleware(c *fiber.Ctx) error
- func SetAuthCookies(c *fiber.Ctx, atk, rtk string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
func AuthMiddleware(c *fiber.Ctx) error
func BindAndValidate ¶
func DoAuthenticate ¶
func EnsureAuthenticated ¶
func EnsureAuthenticated(c *fiber.Ctx) error
func EnsureGrantedPerm ¶
func LinkAccountMiddleware ¶
func LinkAccountMiddleware(c *fiber.Ctx) error
func SetAuthCookies ¶
func SetAuthCookies(c *fiber.Ctx, atk, rtk string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.