I have a Vue application within which I am trying to set up silent token renewal.
My Oidc configuration looks like the below:
var mgr = new Oidc.UserManager({
authority: process.env.VUE_APP_IDENTITY_URL,
client_id: process.env.VUE_APP_CLIENT_ID,
redirect_uri: process.env.VUE_APP_REDIRECT_URI,
scope: 'openid profile',
response_type: 'id_token token',
silent_redirect_uri: process.env.VUE_APP_SILENT_REDIRECT_URI,
userStore: new Oidc.WebStorageStateStore({store: localStorage}),
automaticSilentRenew: true,
filterProtocolClaims: true,
loadUserInfo: true,
})
I also have a static silent-renew.html page:
<!DOCTYPE html>
<html>
<head>
<title>Silent Renew Token</title>
</head>
<body>
<script src='oidc-client.min.js'></script>
<script>
new Oidc.UserManager().signinSilentCallback().catch((err) => {
console.log(err);
});
</script>
</body>
</html>
when I load up the application the silent renew just infinitely loops over and over:
my access token is not due to expire for another hour yet it still is triggering the event, I cannot get to the bottom of this. Does anyone know what else could cause this to loop?