mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-26 04:29:11 +00:00
[rpc/security] fix bot token header name
This commit is contained in:
parent
a273292d97
commit
e8f0579024
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ export const bot = (
|
||||||
ctx: Context,
|
ctx: Context,
|
||||||
...args: any
|
...args: any
|
||||||
) => {
|
) => {
|
||||||
const authToken: ?string = ctx.request.headers['Authorization']
|
const authToken: ?string = ctx.request.headers['authorization']
|
||||||
|
|
||||||
if (authToken != null && authToken.startsWith('Bot ')) {
|
if (authToken != null && authToken.startsWith('Bot ')) {
|
||||||
if (authToken === `Bot ${$.config.sharedSecret}`) {
|
if (authToken === `Bot ${$.config.sharedSecret}`) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue