|
@ -898,6 +898,7 @@ def invalidate_token(refresh_token): |
|
|
for d in doc_details: |
|
|
for d in doc_details: |
|
|
if decrypt(d['refresh_token']) == ref_token: |
|
|
if decrypt(d['refresh_token']) == ref_token: |
|
|
frappe.delete_doc('Refresh Token', d['name']) |
|
|
frappe.delete_doc('Refresh Token', d['name']) |
|
|
|
|
|
generate_access_token(d['name']) |
|
|
|
|
|
|
|
|
return {'status': 1, "error": None} |
|
|
return {'status': 1, "error": None} |
|
|
|
|
|
|
|
|