Skip to content

Commit

Permalink
Fixed code documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanHuot committed Jan 29, 2022
1 parent bd2e8ed commit 4e01008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oauthlib/oauth2/rfc8628/clients/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def prepare_request_body(self, device_code, body='', scope=None,
the ``grant_type`` parameter set to
``urn:ietf:params:oauth:grant-type:device_code``::
>>> from oauthlib.oauth2 import BackendApplicationClient
>>> from oauthlib.oauth2 import DeviceClient
>>> client = DeviceClient('your_id', 'your_code')
>>> client.prepare_request_body(scope=['hello', 'world'])
'grant_type=urn:ietf:params:oauth:grant-type:device_code&scope=hello+world'
Expand Down

0 comments on commit 4e01008

Please sign in to comment.