Skip to content

Commit

Permalink
Improve clarity of OAuth 2.0 User Context example code
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Jul 5, 2023
1 parent 12cc9fa commit bc5a1d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/authentication.rst
Expand Up @@ -149,9 +149,10 @@ This can be used to have a user authenticate your app. Once they've done so,
they'll be redirected to the Callback / Redirect URI / URL you provided. You'll
need to pass that authorization response URL to fetch the access token::

access_token = oauth2_user_handler.fetch_token(
response = oauth2_user_handler.fetch_token(
"Authorization Response URL here"
)
access_token = response["access_token"]

You can then pass the access token to :class:`Client` when initializing it::

Expand Down

0 comments on commit bc5a1d3

Please sign in to comment.