api: implement bare-bones userinfo endpoint
This commit is contained in:
parent
2a03930b7e
commit
1f13e8aa5a
2 changed files with 7 additions and 6 deletions
|
|
@ -1,14 +1,9 @@
|
|||
from typing import Optional
|
||||
from datetime import datetime
|
||||
from pydantic import BaseModel
|
||||
from simple_openid_connect.data import IdToken
|
||||
|
||||
|
||||
class CurrentUser(BaseModel):
|
||||
access_token: str
|
||||
access_token_expiry: datetime
|
||||
refresh_token: Optional[str]
|
||||
refresh_token_expiry: Optional[datetime]
|
||||
id_token: IdToken
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue