Hey <@498057949541826571> I have found this code i...
# support-questions-legacy
h
Hey @rp_st I have found this code in your docs for protecting the backend api routes for email verification claims
Copy code
@app.post('/like_comment')  
async def like_comment(session: SessionContainer = Depends(
        verify_session(
            # We add the EmailVerificationClaim's is_verified validator
            override_global_claim_validators=lambda global_validators, session, user_context: global_validators + \
            [EmailVerificationClaim.validators.is_verified()]
        )
)):
    # All validator checks have passed and the user has a verified email address
    pass
Here the verification is done on the per api basis but in my application I have created a middleware which does the session verification using supertokens' get_session function
session: SessionContainer = await get_session(request)
So I want to know that how can I check the email verification claim in the session using the get_session function only, I know that verify_session is also using the get_session function internally.