GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — exchangeCredential | ADK for TypeScript: API Reference - v2.5.0

  • exchangeCredential

Function exchangeCredential

  • exchangeCredential(
        authScheme: AuthScheme,
        authCredential?: AuthCredential,
    ): AuthCredential | null

    Exchanges an OAuth2 or OpenID Connect credential for an HTTP bearer one.

    Parameters

    • authScheme: AuthScheme

      The auth scheme.

    • OptionalauthCredential: AuthCredential

      The auth credential.

    Returns AuthCredential | null

    The credential unchanged when it already carries http, a new HTTP bearer credential when it carries an access token, or null when there is no token to convert.

    Throws

    Error - If the scheme or the credential is invalid.

    • Defined in core/src/tools/openapi_tool/auth/credential_exchangers/oauth2_exchanger.ts:89
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.