Skip to content

Commit

Permalink
fix: added data to deviceCode call
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Barcella committed May 29, 2024
1 parent 8c98dda commit b04ae37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oauth2/OAuth2DeviceCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ export default class OAuth2DeviceCodeManager extends OAuth2Manager {
}

mapToDeviceCodeResponse (body) {
return new OAuth2DeviceCodeResponse(body.device_code, body.user_code, body.scope, body.verification_uri, body.interval, body.expires_in)
return new OAuth2DeviceCodeResponse(body.data.device_code, body.data.user_code, body.data.scope, body.data.verification_uri, body.data.interval, body.data.expires_in)
}
}

0 comments on commit b04ae37

Please sign in to comment.