Skip to content

About

Official PassKit JavaScript example for generating short-lived JWT tokens in Code by Zapier to authenticate PassKit REST API requests.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

About

Official PassKit JavaScript example for generating short-lived JWT tokens in Code by Zapier to authenticate PassKit REST API requests.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages