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

Commit a98cc57

Browse files
FlosckowDaniil Dumchenko
andauthored
Add refresh token to schemas (#94)
* Feat: add refresh token to schemas * Fix: add coverage --------- Co-authored-by: Daniil Dumchenko <dumchenko.de@sibvaleo.com>
1 parent 4b7873c commit a98cc57

File tree

3 files changed

+479
-3
lines changed

3 files changed

+479
-3
lines changed

fastapi_keycloak/model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,11 @@ class KeycloakToken(BaseModel):
206206
207207
Attributes:
208208
access_token (str): An access token
209+
refresh_token (str): An a refresh token, default None
209210
"""
210211

211212
access_token: str
213+
refresh_token: Optional[str] = None
212214

213215
def __str__(self):
214216
"""String representation of KeycloakToken"""

0 commit comments

Comments
 (0)