Create an OIDC device-authorization client.
OIDC configuration shared with the regular OIDC client.
OIDC device client handle.
OidcError when configuration or native setup is invalid.
const client = createOidcDeviceClient(config);const stop = await client.authorize(status => { if (status.type === 'started') console.log(status.response.userCode);}); Copy
const client = createOidcDeviceClient(config);const stop = await client.authorize(status => { if (status.type === 'started') console.log(status.response.userCode);});
Create an OIDC device-authorization client.