Arquisoft / faq

Frequently asked questions - Software architecture course
MIT License
4 stars 0 forks source link

refreshToken loss when creating inrupt session through script #15

Closed MarcosTobias closed 3 years ago

MarcosTobias commented 3 years ago

I was testing the application, and came across the following error. I also posted it on the inrupt blog but perhaps any of you may know what is going on.

I use the generate-oidc-token library to get the refreshToken clientId, clientSecret and oidcIssuer for connecting to the pod with read-write permissions.

Then I use solid-node-client for creating the session. It works fine the first time, but any tries after that gives the following exception: image

The code for creating the session is: image (I changed the hashes for security reasons)

And proof that the first time works correctly: image

Links to the libraries mentioned: https://github.com/solid/solid-node-client https://github.com/inrupt/generate-oidc-token

MarcosTobias commented 3 years ago

It looks like this is a new problem related with the library I'm using, so I will close the issue.

The creator was able to recreate the error, and is working on it, see: https://github.com/inrupt/solid-client-authn-js/issues/1285