refreshing a token with apollo-client + firebase auth
问题 I'm having some trouble figuring out token refreshes when using apollo-client and firebase's auth service. I've setup token refresh using apollo client before. Typically I use the apollo-link-error package (apollo-link-error docs). My understanding is you get the latest token from firebase auth with a promise like: firebase.auth().currentUser.getIdToken How to use the Firebase refreshToken to reauthenticate? reading the answer from this post: When you make call from a browser .getIdToken(true