ReadonlyuserReadonlyverificationURL to open in the browser to approve the device login request.
Optional ReadonlyverificationOptional the verification URL with the user code appended as query parameter.
Await the user to approve the device login request.
Optionaloptions: { openVerificationUrl?: boolean }Options for the device login flow
OptionalopenVerificationUrl?: booleanOpen the verification URL in the default browser; defaults to true when not specified
OptionalcancelToken: CancellationTokenCancellation token to cancel the login flow
A promise that resolves when the user has approved the device login request
User code to display to the user that must be entered on the device login page (verificationUrl) to approve the login request. The device login page verificationUrl can be opened automatically by setting the
openVerificationUrloption totruewhen calling awaitDeviceApproval.