I am setting some custom `sessionData` in the sess...
# support-questions-legacy
a
I am setting some custom
sessionData
in the session recipe like:
Copy code
createNewSession: async function (input) {
        if (input.sessionData?.userType === UserType.PARTNER) {
          input.sessionData.userType = UserType.PARTNER;
        }

        return originalImplementation.createNewSession(input);
      }
    })
and I was hoping for it to be available by the react frontend in the
useSessionContext
from import { useSessionContext } from 'supertokens-auth-react/recipe/session'; but all I see is:
Copy code
{
  "loading": false,
  "doesSessionExist": true,
  "invalidClaims": [],
  "accessTokenPayload": {
    "st-ev": {
      "v": false,
      "t": 1686675752132
    }
  },
  "userId": "bca760c2-ac0d-4334-9552-e5c93b97d830"
}
Is there a better way or is the sessionData not available to the front end ? thanks in advance