Skip to content

Instantly share code, notes, and snippets.

const jwt = require( 'jsonwebtoken' );
const axios = require( 'axios' );
const secret = 'API secret';
const payload = {
aud: 'Environment ID',
iat: Date.now(),
}
const token = jwt.sign( payload, secret, { algorithm: 'HS256' } );
### Keybase proof
I hereby claim:
* I am omizzy on github.
* I am omizzy (https://keybase.io/omizzy) on keybase.
* I have a public key ASCVOH5vgTJCAsbR5xn1bYo7No8hUkWFTOG5ESg4UfwG8Qo
To claim this, I am signing this object:
@omizzy
omizzy / gist:785e48f103f43da33564
Last active August 29, 2015 14:07
bash colors
# Color Codes
# Black 0;30 Dark Gray 1;30
# Blue 0;34 Light Blue 1;34
# Green 0;32 Light Green 1;32
# Cyan 0;36 Light Cyan 1;36
# Red 0;31 Light Red 1;31
# Purple 0;35 Light Purple 1;35
# Brown 0;33 Yellow 1;33
# Light Gray 0;37 White 1;37
# back to foreground color 0
@omizzy
omizzy / symfony.info
Created March 7, 2012 06:16 — forked from naderman/symfony.info
Drupal 7.0 Symfony2 Integration (Proof of Concept)
name = Symfony
description = Symfony Integration
core = 7.x