EmilioDS
10/09/2025, 9:48 AMMeir Wahnon
10/09/2025, 9:56 AMEmilioDS
10/09/2025, 9:59 AMEmilioDS
10/09/2025, 10:03 AMAuth flow did not succeed: ${result.type});
}
const authCode = (result.params as any)?.code;
await fetch(${BackendAPI}/oauth/callback, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
code: authCode,
codeVerifier: request.codeVerifier
}),
});
in my backend
await descopeClient.oauth.exchange(code, {codeVerifier});Rahul Rijhwani
10/09/2025, 11:05 AMconst response = await descopeClient.oauth.exchange(code);
Refer doc: https://docs.descope.com/auth-methods/oauth/with-sdks/backendEmilioDS
10/09/2025, 11:41 AMRahul Rijhwani
10/09/2025, 12:03 PMEmilioDS
10/09/2025, 12:24 PMRahul Rijhwani
10/10/2025, 5:36 AM