MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / __init__

Method __init__

src/core/service/dto/token.py:20–34  ·  view source on GitHub ↗
(
        self,
        token: str,
        token_type: TokenType,
        subject: str,
        expires_in: datetime,
        session: str | None = None,
        email: str | None = None,
    )

Source from the content-addressed store, hash-verified

18 expires_in: datetime
19
20 def __init__(
21 self,
22 token: str,
23 token_type: TokenType,
24 subject: str,
25 expires_in: datetime,
26 session: str | None = None,
27 email: str | None = None,
28 ) -> None:
29 self.token = token
30 self.token_type = token_type
31 self.subject = subject
32 self.session = session
33 self.email = email
34 self.expires_in = expires_in
35
36 @staticmethod
37 def from_payload(token: str, payload: dict) -> "Token":

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected