A simple but slightly more elaborate example of how to include JWT in the Ktor application flow.
Module.kt contains the server setup, including the
There is a public login route, which responds with JWTs.
These are used to access the secret route.
The JWT configuration can be found in JwtConfig.kt.
Tests can be found in ServerTest.kt