mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
feat: add media asset system, channel lifecycle refactor, and chat attachments (#54)
This commit is contained in:
@@ -28,7 +28,7 @@ func JWTMiddleware(secret string, skipper middleware.Skipper) echo.MiddlewareFun
|
||||
return echojwt.WithConfig(echojwt.Config{
|
||||
SigningKey: []byte(secret),
|
||||
SigningMethod: "HS256",
|
||||
TokenLookup: "header:Authorization:Bearer ",
|
||||
TokenLookup: "header:Authorization:Bearer ,query:token",
|
||||
Skipper: skipper,
|
||||
NewClaimsFunc: func(c echo.Context) jwt.Claims {
|
||||
return jwt.MapClaims{}
|
||||
|
||||
Reference in New Issue
Block a user