@shortcut/client
    Preparing search index...

    Class ShortcutOAuth

    The OAuth authorization-code flow an agent app completes when a workspace installs it, and the refresh it performs before tokens expire.

    Index

    Constructors

    Properties

    timeoutMs: number

    Accessors

    Methods

    • Exchanges the code from the redirect for the workspace's tokens.

      Parameters

      • code: string
      • redirectUri: string | undefined = ...

      Returns Promise<ShortcutOAuthTokens>