ancient-judge-84558
03/31/2023, 10:22 AMDELETE <ORY_URL>/admin/identities/<user_id>
After that the user is delete in ORY alright. But the user still has an ORY session cookie in the browser and this causes error when we try to access endpoints in our app. We get a 401 response all the time.
So what it the proper way to remove leftover cookies etc so that the user is properly deleted and logged out?faint-insurance-61054
03/31/2023, 10:28 AMancient-judge-84558
03/31/2023, 10:38 AMfaint-insurance-61054
03/31/2023, 10:42 AMfaint-insurance-61054
03/31/2023, 10:43 AMfaint-insurance-61054
03/31/2023, 10:44 AMThe user might log back in, before the account is actually deleted.you can set up a cookie that valid for example 5-10mins and prevent login flow having that cookie
faint-insurance-61054
03/31/2023, 10:46 AMThe deletion may fail but you can’t easily report that to the user.in this case I would inform the user that account wasn’t deleted by email and ask to contact the support to fix it manually.
ancient-judge-84558
03/31/2023, 10:49 AMfaint-insurance-61054
03/31/2023, 10:51 AMfaint-insurance-61054
03/31/2023, 10:52 AMancient-judge-84558
03/31/2023, 10:52 AMfaint-insurance-61054
03/31/2023, 10:53 AMfaint-insurance-61054
03/31/2023, 10:53 AMfaint-insurance-61054
03/31/2023, 10:54 AMancient-judge-84558
04/03/2023, 9:31 PM