Browse Source

delete refresh token

master
venkataakhil 2 years ago
parent
commit
9406906004
  1. 1
      smart_service/apis/app_user_login.py

1
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}

Loading…
Cancel
Save