Skip to content

Commit

Permalink
fix(authentication): remove older preConfig (hotfix)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkopanidis committed Mar 22, 2023
1 parent b01af91 commit f6dc2d3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions modules/authentication/src/Authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,6 @@ export default class Authentication extends ManagedModule<Config> {
}
}

async preConfig(config: Config) {
if (
config.accessTokens.cookieOptions.maxAge > config.accessTokens.expiryPeriod ||
config.refreshTokens.cookieOptions.maxAge > config.refreshTokens.expiryPeriod
) {
throw new Error(
'Invalid configuration: *.cookieOptions.maxAge should not exceed *.expiryPeriod',
);
}
return config;
}

async onConfig() {
const config = ConfigController.getInstance().config;
if (!config.active) {
Expand Down

0 comments on commit f6dc2d3

Please sign in to comment.