Browse Source

Refresh token pass aruguments from request

master
venkataakhil 1 year ago
parent
commit
2646b480b7
  1. 7
      smart_service/apis/app_user_login.py

7
smart_service/apis/app_user_login.py

@ -856,7 +856,12 @@ def generate_refresh_token():
@frappe.whitelist(allow_guest=1, methods=['POST'])
def refresh_token(refresh_token):
def refresh_token():
req = frappe.request.data
req = json.loads(req)
refresh_token= req['refresh_token']
device_id= req['DeviceID']
""" For Refresh API """
rate_res = custom_rate_limit(limit=5, seconds=15)
if rate_res != 1:

Loading…
Cancel
Save