# RelayState was removed from BrokeredIdentityContext Keycloak \>= 13.0.0

**URL:** <https://forum.keycloak.org/t/relaystate-was-removed-from-brokeredidentitycontext-keycloak-13-0-0/13620>\
**Category:** Getting advice\
**Created:** [February 15, 2022, 4:03pm UTC](https://forum.keycloak.org/t/relaystate-was-removed-from-brokeredidentitycontext-keycloak-13-0-0/13620 "2022-02-15T16:03:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![huthayfa](https://avatars.discourse-cdn.com/v4/letter/h/cc9497/32.png) [@huthayfa](https://forum.keycloak.org/u/huthayfa)\
**Post date:** [February 15, 2022, 4:03pm UTC](https://forum.keycloak.org/t/relaystate-was-removed-from-brokeredidentitycontext-keycloak-13-0-0/13620/1 "2022-02-15T16:03:43Z")

</div>

I am currently using Keycloak 12.0.0 and I rely on BrokeredIdentityContext to retrieve the relayState using getCode() method. However, the getCode method was dropped from keycloak 13.0.0 and I can’t seem to find the relayState being stored somewhere else(context, userSession …etc).

This the PR that removed relayState from the context [KEYCLOAK-14483 Broker state param fix · keycloak/keycloak@41dc94f · GitHub](https://github.com/keycloak/keycloak/commit/41dc94fead4c20560e0dd96c3efbd7bd10a484b6).

Could someone please help, where can I look for the relayState?

Thanks!
