🐛 Fix auth context middleware force provide token
This commit is contained in:
@ -6,6 +6,10 @@ import (
|
||||
|
||||
func ContextMiddleware(c *fiber.Ctx) error {
|
||||
atk := tokenExtract(c)
|
||||
if len(atk) == 0 {
|
||||
return c.Next()
|
||||
}
|
||||
|
||||
c.Locals("nex_in_token", atk)
|
||||
|
||||
if claims, err := tokenRead(atk); err == nil && claims != nil {
|
||||
|
Reference in New Issue
Block a user