Unable to get Access Token

ayushpandey
I have been trying to generate my access token from my react app but I am always getting NETWORK EXCEPTION. Please can anyone help?

  • sujith
    One should never expose api secret to outside world, or never embed api secret on frontend apps.
    Because of CORS, you won't be able to make a request from your frontend app.
    You need to make request for generating access token from your backend app.
  • sujith
    You can read more about login flow and best practices here.
  • ayushpandey
    Thanks sir for your help
This discussion has been closed.