INNER CODE UNIT · Python

DEPENDENCY

yezz123/authx · authx/main.py:676

    def DEPENDENCY(self) -> AuthXDependency[Any]:
        """FastAPI Dependency to return an AuthX sub-object within the route context."""
        return Depends(self.get_dependency)

    @property
    def BUNDLE(self) -> AuthXDependency[Any]:
        """FastAPI Dependency to return a AuthX sub-object within the route context."""
        return self.DEPENDENCY

    @property
    def FRESH_REQUIRED(self) -> TokenPayload:
        """FastAPI Dependency to enforce valid token availability in request."""
        return Depends(self.fresh_token_required)

    @property
    def ACCESS_REQUIRED(self) -> TokenPayload:
        """FastAPI Dependency to enforce presence of an `access` token in request."""
        return Depends(self.access_token_required)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…