question

Colorado 145 avatar image
Colorado 145 asked Phong Vu answered

JWT authorization does not work in production, error code OAU-213

I have created an SMS app using JWT authentication method, which is still working excellent in sandbox environment. After fulfilling all the requirements, my app got approved for production environment but, when I try to run it using postman, first time it shows "error code CMN-405" (login to extension is required) and then I execute it again without any changes it shows "error code OAU-213" (invalid token/token not found).

I tried to delete older production JWT and re-initialize new production JWT but nothing changes. I am facing all these PRODUCTION ONLY IN PRODUCTION environment NOT IN SANDBOX environment

oauthget token
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Phong Vu avatar image
Phong Vu answered

Make sure you change the server url in your postman.

Production: https://platform.ringcentral.com

Sandbox: https://platform.devtest.ringcentral.com

Then make sure you use the correct JWT token for the right environment.

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys