extensions

val extensions: MutableMap<String, String?>

Allows you to add custom cookie attributes, which are not exposed explicitly. For example, you can pass the SameSite attribute in the following way:

cookie<UserSession>("user_session") {
cookie.extensions["SameSite"] = "lax"
}