Hold-Krykke / Security_and_FullstackJavascript_Exam

4. Semester Security og Fullstack Javascript Eksamens Projekt
0 stars 0 forks source link

Refreshtoken #46

Closed MalteMagnussen closed 4 years ago

MalteMagnussen commented 4 years ago

Ready to Merge.

Will demo tomorrow, then we can merge.

After a great days pair-programming and debugging with @HrBjarup , we finally did it, and it works on both our phones. Couldn't have done it alone.

https://www.apollographql.com/docs/link/links/error/#retrying-failed-requests


This is fixed with an Observables workaround, which is recommended by the developers in the github issue linked below: Issue onError isn't async Solution https://github.com/apollographql/apollo-link/issues/646

Can use button to test

Put TOKEN_EXPIRATION=3600 into .env in backend