diff --git a/smart_service/apis/app_user_login.py b/smart_service/apis/app_user_login.py index 76bc9d1..120c002 100644 --- a/smart_service/apis/app_user_login.py +++ b/smart_service/apis/app_user_login.py @@ -898,6 +898,7 @@ def invalidate_token(refresh_token): for d in doc_details: if decrypt(d['refresh_token']) == ref_token: frappe.delete_doc('Refresh Token', d['name']) + generate_access_token(d['name']) return {'status': 1, "error": None}