himanshukukreja
10/13/2023, 6:26 AM@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.