Sign and Verify JSON Web Token
carbon | cocoa | win32 | win64 |
---|---|---|---|
spctl -a -vv -t install JWT.bundle: accepted
source=Notarized Developer ID
origin=Developer ID Application: keisuke miyako (Y69CWUC25B)
timestamp:=JWT Timestamp ({time1{;time2}})
Parameter | Type | Description |
---|---|---|
time1 | TEXT | anchor time or "" for current time |
time2 | TEXT | time to add |
timestamp | TEXT | UNIX time in milliseconds |
bearer:=JWT Sign (header;claim;privateKey)
Parameter | Type | Description |
---|---|---|
header | TEXT | JSON |
claim | TEXT | JSON |
privateKey | TEXT | |
bearer | TEXT |
valid:=JWT Verify (bearer;privateKey)
Parameter | Type | Description |
---|---|---|
bearer | TEXT | |
privateKey | TEXT | |
valid | LONGINT | 1 :valid |