commonMain.com.appstractive.jwt.Header.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwt-kt Show documentation
Show all versions of jwt-kt Show documentation
JWT creating, parsing, signing and verifying implementation for Kotlin Multiplatform
The newest version!
package com.appstractive.jwt
import kotlinx.serialization.Serializable
@Serializable
data class Header(
val alg: Algorithm = Algorithm.HS256,
val typ: String,
val kid: String? = null,
)
@JwtDsl
class HeaderBuilder {
var typ: String = "JWT"
internal fun build(): Header {
return Header(
typ = typ,
)
}
}