Skip to content

Commit

Permalink
Custom claims is not always present
Browse files Browse the repository at this point in the history
  • Loading branch information
logan-stytch committed Jul 18, 2023
1 parent 80431eb commit 6d8372a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions stytch/b2b/models/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from __future__ import annotations

import datetime
from typing import Any, Dict, List
from typing import Any, Dict, List, Optional

import pydantic

Expand All @@ -25,8 +25,8 @@ class MemberSession(pydantic.BaseModel):
- last_accessed_at: The timestamp when the Session was last accessed. Values conform to the RFC 3339 standard and are expressed in UTC, e.g. `2021-12-29T12:33:09Z`.
- expires_at: The timestamp when the Session expires. Values conform to the RFC 3339 standard and are expressed in UTC, e.g. `2021-12-29T12:33:09Z`.
- authentication_factors: An array of different authentication factors that have initiated a Session.
- custom_claims: The custom claims map for a Session. Claims can be added to a session during a Sessions authenticate call.
- organization_id: Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value.
- custom_claims: The custom claims map for a Session. Claims can be added to a session during a Sessions authenticate call.
""" # noqa

member_session_id: str
Expand All @@ -35,8 +35,8 @@ class MemberSession(pydantic.BaseModel):
last_accessed_at: datetime.datetime
expires_at: datetime.datetime
authentication_factors: List[AuthenticationFactor]
custom_claims: Dict[str, Any]
organization_id: str
custom_claims: Optional[Dict[str, Any]] = None


class AuthenticateResponse(ResponseBase):
Expand Down
2 changes: 1 addition & 1 deletion stytch/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "7.0.1"
__version__ = "7.0.2"

0 comments on commit 6d8372a

Please sign in to comment.