Authenticate Backend Requirements for Frontend Services

The generateAuthToken() SDK method will generate the required token to validate backend invocation calls made from the frontend services; when the backend and front services are hosted in different domains.

Notes:
  • You need to ensure that the backend and frontend services though hosted on different hosting services are part of the same Catalyst project.

  • You must ensure you have whitelisted the domains of the backend and frontend services using the CORS feature present in Catalyst Authentication. You can find out more about the CORS feature from this help documentation.

copy

    var auth = catalyst.auth;
    auth.generateAuthToken().then((response) => {
            const token = response.access_token;   // the required user token will be shared as value in the response
});

Last Updated 2025-09-19 16:27:28 +0530 IST