mirror of
https://github.com/Dokploy/cli.git
synced 2026-07-12 17:35:20 +02:00
feat: update authentication method to use x-api-key header
- Replace Bearer token authentication with x-api-key header across all commands - Update token verification endpoints from auth.verifyToken to user.get - Remove unnecessary console.log debug statements - Bump version to v0.2.7
This commit is contained in:
4
src/commands/env/push.ts
vendored
4
src/commands/env/push.ts
vendored
@@ -91,7 +91,7 @@ export default class EnvPush extends Command {
|
||||
}, {
|
||||
|
||||
headers: {
|
||||
Authorization: `Bearer ${auth.token}`,
|
||||
"x-api-key": auth.token,
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
}
|
||||
@@ -114,7 +114,7 @@ export default class EnvPush extends Command {
|
||||
}
|
||||
}, {
|
||||
headers: {
|
||||
Authorization: `Bearer ${auth.token}`,
|
||||
"x-api-key": auth.token,
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user