Interactive login first phase.

This commit is contained in:
2026-01-27 07:43:57 +01:00
parent 347aee10fd
commit 6dc72ab8d2
8 changed files with 203 additions and 21 deletions

12
bin/interactive-login.js Normal file
View File

@@ -0,0 +1,12 @@
import { loginInteractive } from "../src/auth.js";
import { config } from "../public-config.js";
const scopes = ["https://management.azure.com/.default"];
const token = await loginInteractive({
tenantId: config.tenantId,
clientId: config.clientId,
scopes,
});
console.log("Access token acquired:");
console.log(token.accessToken);