intuit / oauth-jsclient

Intuit's NodeJS OAuth client provides a set of methods to make it easier to work with OAuth2.0 and Open ID
https://developer.intuit.com/
Apache License 2.0
120 stars 154 forks source link

validateIdToken() and validateToken() #107

Open saad141 opened 3 years ago

saad141 commented 3 years ago

whenever i send request for these functions, promise does not send any response and goes to sleep.

abisalehalliprasan commented 3 years ago

As long as the token that is generated has an id_token (you would need to pass opendID scopes ) then you will get a successful response as shown below:

 {
  "sub": "fdcc1d14-xxxxxxxxxxxx-f90800a5e01d",
  "aud": [
    "ABOOYFxJY0Exxxxxxxxxx7jHeJqhZTx21Yu6cEdEt"
  ],
  "realmid": "9130xxxxxx306",
  "auth_time": 161xxxxx02,
  "iss": "https://oauth.platform.intuit.com/op/v1",
  "exp": 16xxxx18,
  "iat": 161xxxx18
}

If you still seeing this issue? Could you provide the node version that you are on so that we would be able to reproduce the issue.