Add bot token authentication.

This commit is contained in:
Paul
2021-07-21 18:25:10 +01:00
parent 922f64e321
commit 496292f83c
2 changed files with 9 additions and 0 deletions
+6
View File
@@ -39,6 +39,12 @@ async function generate(): Promise<Document> {
in: "header",
name: "x-session-token",
description: "Session is created by calling `/auth/login`.\n"
},
'Bot Token': {
type: "apiKey",
in: "header",
name: "x-bot-token",
description: "Bot tokens can be found by fetching `/bots/:id`.\n"
}
}
}
+3
View File
@@ -57,6 +57,9 @@ export function routeAuthenticated(summary: string, description: string, obj: Om
{
'User ID': [],
'Session Token': []
},
{
'Bot Token': []
}
]
}