Use getToken() in getHeaders() instead of deprecated token()