Skip to content
Snippets Groups Projects
Commit 47ca7c25 authored by thijsheijden's avatar thijsheijden
Browse files

fix(authorization): changed refresh interval to once every 10 minutes

parent ad4aaccc
No related branches found
No related tags found
2 merge requests!13merge develop into main,!8feat(authorization): first version that works well
Pipeline #115107 failed
......@@ -166,11 +166,12 @@ export class AuthorizationHandler {
// Activate the refresh token
this.initialiseRefreshToken();
// TODO: Get the user info
// Start the automatic refreshing every 10 minutes
setInterval(() => {
this.refreshTokens();
}, 30 * 1000);
}, 10 * 60 * 1000);
// TODO: Change auth state
}
}
......@@ -180,9 +181,3 @@ type authResponse = {
userID?: string;
sessionID?: string;
};
type userInfoResponse = {
userID: string;
userName: string;
userEmail: string;
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment