DeviceCodeCredential | @azure/identity
Andrew Henderson
Published Feb 17, 2026
Hierarchy
- DeviceCodeCredential
Implements
Index
Constructors
Methods
Constructors
constructor
Methods
authenticate
- authenticate(scopes: string | string[], options?: GetTokenOptions): Promise<AuthenticationRecord | undefined>
Parameters
scopes: string | string[]
Default value options: GetTokenOptions = {}
Returns Promise<AuthenticationRecord | undefined>
getToken
- get
Token(): Promise<AccessToken | null>
Returns Promise<AccessToken | null>