Open IshaanKMathur opened 1 year ago
Protected Route
You don't want inactive users not being able to delete their accounts. So, create a route which allows the logged-in user to be deleted from the database. Return a json message after user has been deleted from db.
Protected Route
You don't want inactive users not being able to delete their accounts. So, create a route which allows the logged-in user to be deleted from the database. Return a json message after user has been deleted from db.