I pushed whatever I had into https://github.com/aerogear/apollo-voyager-ionic-example/tree/data-sync-protected
It depends on https://github.com/aerogear/aerogear-js-sdk/pull/199 to merge
Login works, token is received. And if the token expires, browser is sent to Keycloak login page. Token is also sent to Graphql server in the newly created protected page, which is cool.
Problem But the problem is that , on app init the Graphql preflight request is happening too early that the token is not there yet (or for some reason the token can't be sent). |
|