mirror of
https://github.com/stoatchat/javascript-client-api.git
synced 2026-07-21 04:25:22 -04:00
Add bot token authentication.
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,6 +57,9 @@ export function routeAuthenticated(summary: string, description: string, obj: Om
|
||||
{
|
||||
'User ID': [],
|
||||
'Session Token': []
|
||||
},
|
||||
{
|
||||
'Bot Token': []
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user