I have to send bearer at headers. I saw that I have to add hashMap with values:
val headerMap = HashMap<String, String>()
headerMap["Authorization: Bearer "] = context!!.getSharedPreferences("app_data", 0).getString("access_token", "")!!
and then send data with url:
webView.loadUrl(link, headerMap)
but as a result I see that I send the wrong format of this token:
authorization=bearer :token
How I can fix it because with that token I can't get data from page?