After going through articles like Why JWTs Suck as Session Tokens and other similar content on why it is bad to use JWTs, I’m convinced that a good old-fashioned server-side session management solution (like Redis) is the right choice for our use case.
Is there a guide on how to use Okta with server-side session and avoid all these unnecessary complexity associated with JWT tokens? A quick search yielded content about Okta session and application session and I’m not sure how this relate to a server-side session store like Redis.
When you start building your next website, just rely on your web framework’s default authentication libraries and tools, and stop trying to shove JWTs into the mix unnecessarily.
Also here is an example library/middleware that handles SSO with an IdP and then creates sessions in your application once the user is authenticated through the IdP - passport - npm. And although an Okta session has been established, it’s separate from your application session.