@ -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: