generateJwt

fun generateJwt(base64Secret: String, claims: Map<String, Any>): String

Generate a JWT for authentication.

Return

The JWT string.

Parameters

base64Secret

The base64-encoded secret key.

claims

The claims to include in the JWT.

Throws

If the secret is null or empty.

JOSEException

If there is an error signing the JWT.