One token key for all! kill the zoo

This commit is contained in:
skeris 2024-06-08 20:34:40 +03:00
parent 28e724dbad
commit 6de97a181a
2 changed files with 2 additions and 2 deletions

@ -828,7 +828,7 @@ paths:
summary: Получение изменений аккаунта через SSE
operationId: accountPipe
parameters:
- name: token
- name: Authorization
in: query
description: токен пользователя
required: true

@ -52,7 +52,7 @@ func parseJWSFromRequest(c *fiber.Ctx) (string, error) {
return strings.TrimPrefix(header, prefix), nil
}
token := c.Query("token")
token := c.Query("Authorization")
if token == "" {
return "", errors.New(
fmt.Errorf("failed to parse jws from request: no valid token found"),