-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Approach :-
- User Requests Account Deletion
- extract the user_id from the the JWT token.
- update the database set is_deleted= true, deleted_at= current_time
- this marks the account as "soft-deleted".
- User tries to login again within 90 days.
- during login, after verifying Github OAuth check if the user is soft deleted.
- if deleted_at + 90 days > now then user is within grace period.
- reverse the deletion by deleted = false, deleted_at = NULL.
- Background Job runs daily.
- run a scheduled Job once a day using cron package.
- it runs the query and permanently deletes the user whose deleted_at timestamp is older than 90 days.
Metadata
Metadata
Assignees
Labels
No labels