diff --git a/backend/helpers/kratos_user.py b/backend/helpers/kratos_user.py index b113fc4..523f67b 100644 --- a/backend/helpers/kratos_user.py +++ b/backend/helpers/kratos_user.py @@ -178,7 +178,7 @@ class KratosUser(): cookie_csrf = None cookie_session = None for cookie in cookies: - search = re.match(r'`ory_kratos_session`=([^;]*);.*$', cookie) + search = re.match(r'ory_kratos_session=([^;]*);.*$', cookie) if search: cookie_session = "ory_kratos_session=" + search.group(1) search = re.match(r'(csrf_token[^;]*);.*$', cookie) diff --git a/src/services/auth/redux/actions.ts b/src/services/auth/redux/actions.ts index 0988311..cde2b8e 100644 --- a/src/services/auth/redux/actions.ts +++ b/src/services/auth/redux/actions.ts @@ -26,7 +26,7 @@ export const signIn = (params: string) => ); export function signOut() { - return async (dispatch: any) => { + return (dispatch: any) => { dispatch(signOutAction()); }; }