---
title: "How to Create JSON Web Token (JWT) with Google Apps Script &#8211; Digital Inspiration"
author: "Martin Hawksey"
date: 2020-11-30T16:53:49+00:00
modified: 2020-11-30T16:54:37+00:00
canonical_url: https://pulse.appsscript.info/p/2020/11/how-to-create-json-web-token-jwt-with-google-apps-script-digital-inspiration/
markdown_url: https://pulse.appsscript.info/p/2020/11/how-to-create-json-web-token-jwt-with-google-apps-script-digital-inspiration.md
categories:
  - "Intermediate"
  - "Snippet"
  - "V8"
tags:
  - "@labnol"
  - "labnol.org"
featured_image: https://pulse.appsscript.info/files/2020/11/134653.png
description: "Nice little snippet from Amit Agarwal for both creating and decoding JSON Web Tokens (JWT) - \"you can use Google Script to create JSON Web Tokens (JWT) that can be provided to secure routes so that only authenticated requests that contain a valid token can connect to the APIs (e.g., the Zoom API)\""
---

# How to Create JSON Web Token (JWT) with Google Apps Script &#8211; Digital Inspiration

![How to Create JSON Web Token (JWT) with Google Apps Script &#8211; Digital Inspiration](https://pulse.appsscript.info/files/2020/11/134653.png)

> [https://www.labnol.org/code/json-web-token-201128](https://www.labnol.org/code/json-web-token-201128)
> You can use Google Script to create JSON Web Tokens (JWT) that can be provided to secure routes so that only authenticated requests that contain a valid token can connect to the APIs (e.g., the Zoom API)

Nice little snippet from Amit Agarwal for both creating and decoding JSON Web Tokens (JWT).

Source: *[How to Create JSON Web Token (JWT) with Google Apps Script – Digital Inspiration*](https://www.labnol.org/code/json-web-token-201128)

---

*Published by [Martin Hawksey](https://pulse.appsscript.info/p/author/admin/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2020/11/how-to-create-json-web-token-jwt-with-google-apps-script-digital-inspiration/](https://pulse.appsscript.info/p/2020/11/how-to-create-json-web-token-jwt-with-google-apps-script-digital-inspiration/)*
