mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-21 05:32:53 +00:00
test: simplify control ui auth nonces
This commit is contained in:
@@ -227,7 +227,7 @@ export function registerControlUiAndPairingSuite(): void {
|
||||
scopes: [],
|
||||
clientId: GATEWAY_CLIENT_NAMES.CONTROL_UI,
|
||||
clientMode: GATEWAY_CLIENT_MODES.WEBCHAT,
|
||||
nonce: String(challengeNonce),
|
||||
nonce: challengeNonce,
|
||||
}));
|
||||
}
|
||||
const res = await connectReq(ws, {
|
||||
@@ -410,7 +410,7 @@ export function registerControlUiAndPairingSuite(): void {
|
||||
clientId: GATEWAY_CLIENT_NAMES.CONTROL_UI,
|
||||
clientMode: GATEWAY_CLIENT_MODES.WEBCHAT,
|
||||
signedAtMs: Date.now() - 60 * 60 * 1000,
|
||||
nonce: String(challengeNonce),
|
||||
nonce: challengeNonce,
|
||||
});
|
||||
const res = await connectReq(ws, {
|
||||
token: "secret",
|
||||
|
||||
Reference in New Issue
Block a user