Client credentials

Can I use client credentials with a react app that queries enpoints and displays the data in a web page or do I have to use implicit grant?

Web apps are unable to handle client credentials securely and therefore must not use that grant type. It's not technically possible either since API responses for client credential requests do not contain CORS headers.

Implicit is the way to go for web apps. You can read about the various grant types and their typical use cases here: https://developer.genesys.cloud/api/rest/authorization/#authorization-types

There was a recent thread discussing using the SDK in a React app. The SDK has login helpers to simplify the process. How to add purecloud sdk in NextJs typescript react?

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.