Theia API Documentation v1.77.0
    Preparing search index...
    • Extracts the authorization code from user input, which is either the bare code or the full redirect URL the browser was sent to.

      Parameters

      • input: string
      • expectedState: string
      • callbackPath: string = CHATGPT_CALLBACK_PATH

      Returns string

      if no code can be extracted, if the redirect URL is not the sign in callback or if its state does not match