ktor-auth-jwt-sample

Introduction: A simple but slightly more elaborate example of how to include JWT in the Ktor application flow.
More: Author   ReportBugs   
Tags:

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 Routing.

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

Apps
About Me
GitHub: Trinea
Facebook: Dev Tools