Skip to content

Commit

Permalink
Resolve typo and change to Literal
Browse files Browse the repository at this point in the history
Co-authored-by: Aima Ovai <[email protected]>
Co-authored-by: James King <[email protected]>
  • Loading branch information
3 people committed Feb 5, 2024
1 parent 5b939a9 commit 8b304ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/oauth2.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Returns the authorization URL where you should redirect the user to ask for thei
* `state: str = None`: Optional string that will be returned back in the callback parameters to allow you to retrieve state information.
* `scope: Optional[List[str]] = None`: Optional list of scopes to ask for.
* `code_challenge: Optional[str] = None`: Optional code_challenge in a [PKCE context](https://datatracker.ietf.org/doc/html/rfc7636).
* `code_challenge_method: ptional[str] = None`: Optional code_challenge_method in a [PKCE context](https://datatracker.ietf.org/doc/html/rfc7636).
* `code_challenge_method: Optional[str] = None`: Optional code_challenge_method in a [PKCE context](https://datatracker.ietf.org/doc/html/rfc7636).
* `extras_params: Optional[Dict[str, Any]] = None`: Optional dictionary containing parameters specific to the service.

!!! example
Expand Down
3 changes: 2 additions & 1 deletion httpx_oauth/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Generic,
List,
Optional,
Literal,
Tuple,
TypeVar,
cast,
Expand Down Expand Up @@ -101,7 +102,7 @@ async def get_authorization_url(
state: Optional[str] = None,
scope: Optional[List[str]] = None,
code_challenge: Optional[str] = None,
code_challenge_method: Optional[str] = None,
code_challenge_method: Literal['plain', 'S256'] = None,
extras_params: Optional[T] = None,
) -> str:
params = {
Expand Down

0 comments on commit 8b304ce

Please sign in to comment.