mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-09 17:57:06 +08:00
feat: Token middleware
This commit is contained in:
@@ -67,7 +67,7 @@ class HttpService {
|
||||
// Add auth token
|
||||
const token = wsCache.get('user.token')
|
||||
if (token && config.headers) {
|
||||
config.headers['X-SQLBOT_TOKEN'] = `Bearer ${token}`
|
||||
config.headers['X-SQLBOT-TOKEN'] = `Bearer ${token}`
|
||||
}
|
||||
|
||||
// Request logging
|
||||
|
||||
Reference in New Issue
Block a user