Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Add refresh token to schemas (#94)
Browse files Browse the repository at this point in the history
* Feat: add refresh token to schemas

* Fix: add coverage

---------

Co-authored-by: Daniil Dumchenko <[email protected]>
  • Loading branch information
Flosckow and Daniil Dumchenko authored May 24, 2023
1 parent 4b7873c commit a98cc57
Show file tree
Hide file tree
Showing 3 changed files with 479 additions and 3 deletions.
2 changes: 2 additions & 0 deletions fastapi_keycloak/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,11 @@ class KeycloakToken(BaseModel):
Attributes:
access_token (str): An access token
refresh_token (str): An a refresh token, default None
"""

access_token: str
refresh_token: Optional[str] = None

def __str__(self):
"""String representation of KeycloakToken"""
Expand Down
Loading

0 comments on commit a98cc57

Please sign in to comment.