How can I get token from cookies?

In terms of testing I need to get token from cookies.
In cookies I have:

  • AUTH_SESSION_ID
  • KEYCLOAK_IDENTITY
  • KEYCLOAK_SESSION
    In local storage I have token, but this one is not the same with those that server returns in “auth/realms/dev/protocol/openid-connect/token”

Will be grateful for any advice. Thank you!