KScript docs
EN

jwt fields and methods

A field is a plain fact about the value, read with a dot and no brackets: $value.name. A method takes arguments or does work, and is called with ->: $value->name(arguments), or with the value piped in: $value |> name(arguments).

Fields

FieldTypeDescription
.claimsmapThe token's claims: { sub, exp, ... }. The signature isn't checked, so don't trust them for sign-in.
.expiresdateWhen the token expires (its exp claim), or null if it doesn't say.
.headermapThe token's header: { alg, typ, ... }.
.is_expiredboolTrue when its exp claim is in the past.

Methods from any

Methods from string