Hey all, I think maybe there might be a little typ...
# support-questions-legacy
b
Hey all, I think maybe there might be a little typo in some of the website documentation. From here (https://supertokens.com/docs/thirdparty/common-customizations/sessions/claims/claim-validators#adding-a-validator-check-to-a-specific-route) in the nodejs example I see
const roles = await req.session!.getClaimValue(UserRoles.UserRoleClaim);
(specifically the
session!.getClaimValue()
part). However, assuming that
!
operator isn't meant to be there, I am still finding that my session objects do not actually contain any function
getClaimValue()
. The role data exists in the session object, I see it in
userDataInAccessToken
. But that function doesn't exist and can't be called for whatever reason.