JWT configuration
In KDone login works with JWT tokens, so it is necessary to configure JWT login before configure models and users.
JWT configuration is done passing JWTConfig to startKDone function.
startKDone(
port = 23146,
mongoURL = "mongodb://localhost:27017/games",
jwtConfig = JWTConfig("<secret>")) {
}
JWTConfig needs at least the secret string to sign JWT token. Other parameters are
issuerstring, by default set to “kdone.com”validityInMsrepresents JWT tokens validity, by default set tonull, which means that JWT tokens never expirealgorithmused to generate JWT tokens, by default set to HMAC512