generated from PenaSide/GolangTemplate
One token key for all! kill the zoo
This commit is contained in:
parent
28e724dbad
commit
6de97a181a
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user