Browse Source

Refresh token pass aruguments from request

master
venkataakhil 1 year ago
parent
commit
be72696ece
  1. 9
      smart_service/apis/app_user_login.py

9
smart_service/apis/app_user_login.py

@ -862,11 +862,12 @@ def refresh_token():
rate_res = custom_rate_limit(limit=5, seconds=15)
if rate_res != 1:
return rate_res
frappe.set_user("Administrator")
req = frappe.request.data
req = json.loads(req)
refresh_token= req['refresh_token']
if refresh_token:
frappe.set_user("Administrator")
req = frappe.request.data
req = json.loads(req)
refresh_token= req['refresh_token']
device_id= req['DeviceID']
# frappe.log_error('')
# req = json.loads(frappe.request.data)

Loading…
Cancel
Save