Make Convex Auth fast by not using middleware and not waiting for server to get user
1. The user will stay authenticated for at least the 30 next days every time they interact with the app for up to 1 year in total
2. I want to have some local state for if the user is signed out so that i can either show them the signed in page or show the profile picture with their name immediately when they enter my page.
3. I want to easily make some functions require auth and I want those functions to be really lightweight so that it does not need to make a seperate call to the auth server every time I want to make a request.
Is it possible/easy to achieve something like this with Convex?
My assumptions:
1. You can set the following values:
2. I can use a jwt token
3. I can use jwt token
My main problems are that jwt does not really seem to be recommended in authjs 5 (https://authjs.dev/reference/nextjs/jwt) and I find it hard to understand if convex auth is a seperate service or not. I am also finding it hard to understand how I would actually implement the code that achieves 2 and 3. How can I access the jwt state if that is a valid solution and if not: What is a good alternative?
Lastly, for 3, I want to make sure that if something changes on the server, such as a user role being updated, that should take priority over the jwt token always.

