I'm trying to write a wrapper for jwt-decode. The returned payload should have a property named "https://...". How can I access that in Kotlin? My first thought was:
Copy code
class AccessTokenPayload : JwtPayload {
@JsName("https://...")
var subscription: String?
get() = definedExternally
set(value) = definedExternally
}
Sean Proctor
01/12/2023, 1:00 PM
That doesn't compile because "name contains illegal chars"