INNER CODE UNIT · Python

unset_cookies

yezz123/authx · authx/main.py:655

    def unset_cookies(
        self,
        response: Response,
    ) -> None:
        """Remove 'Set-Cookie' for tokens from response headers.

        Args:
            response (Response): response to remove token cookies from
        """
        self.unset_access_cookies(response)
        self.unset_refresh_cookies(response)

    # Notes:
    # The AuthXDeps is a utility class, to enable quick token operations
    # within the route logic. It provides methods to avoid additional code
    # in your route that would be outside of the route logic

    # Such methods includes setting and unsetting cookies without the need

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…