authenticateDeviceForResource
The device can be authenticated for anonymous resource calls with specific (or the default) scopes.
authenticateDeviceForResource: (scopes?: string[]): Promise<void>
| Property | Type | Description | 
|---|---|---|
| scopes | string[] | Set of scopes the client authentication is requested for | 
Example
OneWelcomeSdk.authenticateDeviceForResource(path)
  .then(() => {
    console.log('Device Authentication succeed!')
  })
  .catch(error => {
    console.log('Device Authentication failed!: ', error.message)
  })