Here is my usecase,
I have two apps, one written in rails and other is written in R. App written on rails acts as landing page. From there we can go in to app written in R.
We are using Salesforce OAuth to get authenticated for rails app. And we want to use the same access token in R apps as well.
Accesss token fetched in rails app can be passed to R app along with instance URL. Now in R app how can we make sure the Access token is valid? Is there any API which will check whether the accesstoken is valid or not?
If we have the API I can just make sure the access token is valid in R app.