Skip to content

Commit

Permalink
fixsignout redirect issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mshick committed Mar 20, 2024
1 parent 323e286 commit 4b8f465
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/features/AccountForm/AccountFormAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type AccountFormAddressForm = {
};

export const AccountFormAddress = () => {
const { data: session } = useSession({ required: true });
const { data: session } = useSession();

const {
handleSubmit,
Expand Down
2 changes: 1 addition & 1 deletion src/features/AccountForm/AccountFormMarketing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type AccountFormMarketingForm = {
};

export const AccountFormMarketing = () => {
const { data: session } = useSession({ required: true });
const { data: session } = useSession();

const {
handleSubmit,
Expand Down
2 changes: 1 addition & 1 deletion src/features/AccountForm/AccountFormPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type AccountFormPasswordForm = {
};

export const AccountFormPassword = () => {
const { data: session } = useSession({ required: true });
const { data: session } = useSession();

const {
handleSubmit,
Expand Down
2 changes: 1 addition & 1 deletion src/features/AccountForm/AccountFormProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type AccountFormProfileForm = {
};

export const AccountFormProfile = () => {
const { data: session } = useSession({ required: true });
const { data: session } = useSession();

const {
handleSubmit,
Expand Down
2 changes: 1 addition & 1 deletion src/features/AccountNavigation/AccountNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function useLogout() {

const handleLogout = useCallback(async () => {
await client.resetStore();
void signOut({ callbackUrl: '/' });
void signOut({ callbackUrl: '/', redirect: true });
}, [client]);

return {
Expand Down

0 comments on commit 4b8f465

Please sign in to comment.