function exchangeCode exchangeCode(origin: string,params: { code: string; clientId: string; redirectUri: string; codeVerifier: string; }): Promise<string> Trades code for an identity token at the token endpoint of the instance at origin, and returns the token, unverified. Parameters origin: string params: { code: string; clientId: string; redirectUri: string; codeVerifier: string; } Return Type Promise<string> Throws Error When the instance refuses or answers no token.