Skip to content

Commit

Permalink
Refactor OauthResourceType enum and add refresh_token field to Access…
Browse files Browse the repository at this point in the history
…TokenResponse model
  • Loading branch information
Revisto committed Sep 12, 2024
1 parent 39fdb2d commit 6ccbd88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kenar/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class OauthResourceType(str, Enum):
CHAT_POST_CONVERSATIONS_READ = "CHAT_POST_CONVERSATIONS_READ"
CHAT_POST_CONVERSATIONS_MESSAGE_SEND = "CHAT_POST_CONVERSATIONS_MESSAGE_SEND"
USER_VERIFICATION_CREATE = "USER_VERIFICATION_CREATE"
OFFLINE_ACCESS = "OFFLINE_ACCESS"
OFFLINE_ACCESS = "offline_access"

MANAGEMENT_APPS_READ = "MANAGEMENT_APPS_READ"
MANAGEMENT_APPS_WRITE = "MANAGEMENT_APPS_WRITE"
Expand All @@ -25,6 +25,7 @@ class OauthResourceType(str, Enum):

class AccessTokenResponse(BaseModel):
access_token: str
refresh_token: Optional[str] = None
token_type: str
expires_in: int
scope: str
Expand Down

0 comments on commit 6ccbd88

Please sign in to comment.