INNER CODE UNIT · Python

_decode_token

yezz123/authx · authx/main.py:193

    def _decode_token(
        self,
        token: str,
        verify: bool = True,
        audience: Optional[StringOrSequence] = None,
        issuer: Optional[str] = None,
    ) -> TokenPayload:
        try:
            try:
                return TokenPayload.decode(
                    token=token,
                    key=self.config.public_key,
                    algorithms=[self.config.JWT_ALGORITHM],
                    verify=verify,
                    audience=audience or self.config.JWT_DECODE_AUDIENCE,
                    issuer=issuer or self.config.JWT_DECODE_ISSUER,
                )
            except JWTDecodeError:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…