I'm trying to write a wrapper for jwt-decode. The ...
# javascript
s
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
}
That doesn't compile because "name contains illegal chars"
t
Pill -
inline
extension
AccessTokenPayload
- must be
external
?!