Skip to content

Instantly share code, notes, and snippets.


Daniel Laberge DanielLaberge

  • ConstructBuy
  • Canada
View GitHub Profile
View LG-Smart-TV-Blocklist-unbound
# added after fork
DanielLaberge / postman-pre-request.js
Last active Aug 13, 2021 — forked from bcnzer/postman-pre-request.js
Postman pre-request script to automatically get an id_token from AWS Cognito using a Refresh Token and save it for reuse
View postman-pre-request.js
/* This Postman pre-request script allows using an id_token from an Amazon Cognito OAuth2 flow instead of the access_token.
It only exists as a workaround because Postman's team has been ignoring requests to let us use an id_token instead of access_token since 2014.
See: and
It has been adapted to support AWS Cognito User Pools from
It uses a refresh_token (which you must get manually) and exchanges it for an id_token, and refreshes it automatically as needed.
You could use it to talk to most OAuth2 Endpoints with very minimal changes.
How to use:

Thank you for considering the installation of an electric charge point for my vehicule.

Here are the requirements to install a Tesla High Power Wall Connector (HPWC):

  • A 240V circuit is required with a minimum rating of 20A. Ideally 30A, 40A or 50A, to allow faster charging.

  • A wire will need to be installed running from the nearest electrical panel to a wall near the parking spot. The following diagram shows the locations where the charger can be installed in relation to the car/parking spot: InstallLocationDiagram

  • Optionally, a power receptacle (like NEMA 10-30 or NEMA 14-50) can be installed to allow other eventual cars or chargers to be easily plugged in. In this case, I would simply connect my charger to this port, rather than run the wire directly to my charger.