Skip to content

PassKit/jwt-token-generator-zapier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

PassKit Zapier Short Lived JWT Generator

Overview

This code allows you to generate a short lived token in Zapier using Zapier Code.

Prerequisites

You will need the following:

Configuration

  1. After you have completed the prerequisites, log onto Zapier and 'Create Zap' on the right hand side. ScreenShot

  2. You will see the screen below. In the search bar type in Code by Zapier and select it from the list. ScreenShot

  3. Once selected you will be able to pick an event, in the drop down list choose 'Run JavaScript' and click continue. ScreenShot

  4. Next copy the code in the jwt-token-generator file into the Code box. On the first line of code replace "YOUR_PK_API_KEY" "YOUR_PK_API_SECRET" with the REST credentials as mentioned in the prerequisites. Then click continue. Your screen may look different to the below and include input boxes above the code box if this is an action as opposed to a trigger. If this is the case leave the input box blank. ScreenShot

  5. Lastly you will need to test your trigger or action. There should be a jwt token generated shortly after testing. ScreenShot

To use it in any other steps in this Zap, select a box where you can insert data, select the Code by Zapier step and choose Token from the list of options.

Support