Skip to content

Commit

Permalink
fix: don't use path
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Jul 22, 2024
1 parent c3d46ff commit d028b86
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/customizations/volto/helpers/AuthToken/AuthToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,7 @@ export function persistAuthToken(store, req) {
if (previousValue !== currentValue || initial) {
if (!currentValue) {
if (previousValue) {
cookies.remove('auth_token', {
path: __DEVELOPMENT__
? config.settings.prefixPath
: config.settings.apiPath,
});
cookies.remove('auth_token');
}
} else {
if (previousValue !== currentValue) {
Expand All @@ -73,9 +69,6 @@ export function persistAuthToken(store, req) {
currentValue,
getCookieOptions({
expires: new Date(jwtDecode(currentValue).exp * 1000),
path: __DEVELOPMENT__
? config.settings.prefixPath
: config.settings.apiPath,
}),
);
}
Expand Down

0 comments on commit d028b86

Please sign in to comment.