Platform 2018.09.03
On production sites
This release lets you work with JSON Web Tokens in your Liquid templates.
Create and read JSON Web Tokens
Use jwt_encode to turn a payload into a token, and jwt_decode to read a token back into its payload and header. For example, {{ payload | jwt_encode: 'HS256', 'this-is-secret' }} creates a signed token. Both filters take an algorithm. The options are none (an unsigned token), HS256, HS384, HS512, RS256, RS384 and RS512. For the RS algorithms, pass your public key when you decode.
Also in this release
- Errors shown by
insites-cli logsare more detailed, which helps you debug your app. They now name the filter and the page involved.