INNER CODE UNIT · Python

_create_token

yezz123/authx · authx/main.py:161

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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…