Interactive login first phase.
This commit is contained in:
12
bin/interactive-login.js
Normal file
12
bin/interactive-login.js
Normal 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);
|
||||
Reference in New Issue
Block a user