Using @auth0/angular-jwt i can't make the factory read the token getter each time i make a request

I’m using this code to configure the jwtOptionsFactory

export function jwtOptionsFactory() {
return {
tokenGetter: () => {
return sessionStorage.getItem(‘id_token’);
},
whitelistedDomains: [ AppConfig.settings.apiServer.Domain ],
blacklistedRoutes: [
AppConfig.settings.apiServer.ApiEndpoint + ‘api/Login/PostIntegrated’,
AppConfig.settings.apiServer.ApiEndpoint + ‘api/Login’
]
};
}

And only in the first request that the tokenGetter is executed, after that it isn’t.
The problem is that the first request is the one to make the token, and I can’t use it anymore.
How can I configure it?