INNER CODE UNIT · Python

_create_payload

yezz123/authx · authx/main.py:117

    def _create_payload(
        self,
        uid: str,
        type: str,
        fresh: bool = False,
        expiry: Optional[DateTimeExpression] = None,
        data: Optional[dict[str, Any]] = None,
        audience: Optional[StringOrSequence] = None,
        scopes: Optional[list[str]] = None,
        **kwargs: Any,
    ) -> TokenPayload:
        # Handle additional data
        if data is None:
            data = {}
        elif self.login_type is not None:
            data = data.copy()
        if self.login_type is not None:
            data["login_type"] = self.login_type

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…