JWT_SIGN

Creates a JSON Web Token from the input claim set using either RS256 (default), HS256 or ES256.

Syntax 

JWT_SIGN(claim_set, key, [algorithm], [headers])

Usage examples 

Example 1

Formula

JWT_SIGN(claim_set, CREDENTIAL.jwt_hmac_key, "HS256", extra_headers)

Example 2

Formula

JWT_SIGN({"iss":"Test Company","iat":1676003525,"exp":1707539525,"aud":"www.example.com","sub":"jsmith@example.com"}, CREDENTIAL.jwt_hmac_key, "HS256", {"typ":"JWT"})

Sample Actions 

Transform
My Action
Transform
JWT_SIGN

Select an action to inspect

You can also click "Copy actions" and paste them in your Tines story to see how they work.

Was this helpful?