@modelcontextprotocol/sdk
    Preparing search index...

    Invalid grant error - The provided authorization grant or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    errorUri?: string
    message: string
    name: string
    stack?: string
    errorCode: string = 'invalid_grant'
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

    stackTraceLimit: number

    Accessors

    Methods

    • Converts the error to a standard OAuth error response object

      Returns { error: string; error_description?: string; error_uri?: string }

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void