@backblaze-labs/b2-mcp
    Preparing search index...

    Class OAuthJwtVerifier

    OAuth bearer-token verifier for JWT access tokens.

    The verifier validates JOSE headers, pins allowed algorithms, resolves and caches JWKS documents, verifies the compact JWT signature, and applies the same resource, scope, subject, type, and lifetime checks as introspection.

    const verifier = new OAuthJwtVerifier({ config });
    const authInfo = await verifier.verifyAccessToken(jwt);

    Implements

    • OAuthTokenVerifier
    Index
    • Verify a compact JWT access token.

      Parameters

      • token: string

        Raw compact JWT value without the Bearer prefix.

      Returns Promise<AuthInfo>

      MCP auth information for the verified token.

      OAuthError when the JWT is malformed, unsigned by a trusted key, or lacks required claims/scopes.

      OAuthDependencyError when JWKS retrieval cannot complete.