15 Invalidate session if refresh token fails. After the session clears its data (isAuthenticated, authenticator, etc), it will then trigger the 'invalidationSucceeded' event. If using ESA's ApplicationRouteMixin, then the mixin will automatically handle the transitioning to the index route
16 Handle server responses that are not JSON string. We reject and pass the successful Response we got from fetch(). This gives the user the ability to handle it how they like in their catch block
15 Invalidate session if refresh token fails. After the session clears its data (isAuthenticated, authenticator, etc), it will then trigger the 'invalidationSucceeded' event. If using ESA's ApplicationRouteMixin, then the mixin will automatically handle the transitioning to the index route
16 Handle server responses that are not JSON string. We reject and pass the successful Response we got from fetch(). This gives the user the ability to handle it how they like in their catch block