All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.appstractive.jwt.Header.kt Maven / Gradle / Ivy

Go to download

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,
    )
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy