Interested in the token verification within jupyter server

I have a use case, wherein i need to ntegrate jupyter server within my app. I dont want to use jupyterhub, so interested in the token verification code within jupyter server, as i have a similar use, wherein users will be authenticated within my app and will have a JWT token and jupyter server should verify this JWT and trigger a refresh, if its expired.