Hi, i am trying to retrieve token value from chrome local storage but i am not sure if i am using the right code.
Could you please assist.
the value is adal.idtoken and i need to get the key/token from that value
This is the code that i am trying to use to get the value.
-
String bearerToken = WebUI.executeJavaScript(“localStorage.getItem(‘adal.idtoken’)”, null)
Script is executed but no value is retrieved (as i can see in debug mode) -
Then i am trying to store it in global variable:
GlobalVariable.bearerToken = bearerToken