This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('dotenv').config(); | |
const JwtTokenHandler = require('oauth2-bearer-jwt-handler').JwtTokenHandler; | |
const AuthPolicy = require('./auth-policy'); | |
const fs = require('fs'); | |
const jwtTokenHandler = new JwtTokenHandler({ | |
issuer: process.env.ISSUER, | |
audience: process.env.AUDIENCE, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### nvm installation | |
$ curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh -o install_nvm.sh | |
### run script | |
$ bash install_nvm.sh | |
$ source ~/.profile | |
$ nvm ls | |
$ nvm install 6.10.2 | |
### set default node |