:sparles: Badges

This commit is contained in:
2024-06-02 20:45:56 +08:00
parent 61eff6ea49
commit 1c36b429ea
9 changed files with 108 additions and 172 deletions

View File

@ -4,10 +4,11 @@ import (
"fmt"
"git.solsynth.dev/hydrogen/passport/pkg/services"
"git.solsynth.dev/hydrogen/passport/pkg/utils"
"github.com/gofiber/fiber/v2"
)
func MapUserInterface(A *fiber.App, authFunc func(c *fiber.Ctx, overrides ...string) error) {
func MapUserInterface(A *fiber.App, authFunc utils.AuthFunc) {
authCheckWare := func(c *fiber.Ctx) error {
var token string
if cookie := c.Cookies(services.CookieAccessKey); len(cookie) > 0 {