INNER CODE UNIT · Python

verify_token

yezz123/authx · authx/main.py:417

    def verify_token(
        self,
        token: RequestToken,
        verify_type: bool = True,
        verify_fresh: bool = False,
        verify_csrf: bool = True,
    ) -> TokenPayload:
        """Verify a request token.

        Attempts verification with the current key first, then falls back
        to the previous key if key rotation is configured.

        Args:
            token (RequestToken): RequestToken instance
            verify_type (bool, optional): Apply token type verification. Defaults to True.
            verify_fresh (bool, optional): Apply token freshness verification. Defaults to False.
            verify_csrf (bool, optional): Apply token CSRF verification. Defaults to True.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…