This file contains hidden or 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
"use strict"; | |
// Gulp 4.0.0 + SASS, minification, TailwindCSS, PHP and BrowserSync support | |
// (assumes you have your .scss + .css files in a /css directory) | |
// william@wturrell.co.uk | |
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
cssnano = require('gulp-cssnano'), | |
php = require('gulp-connect-php'), |
This file contains hidden or 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
import { JWE, JWK, JWS } from 'node-jose' | |
import fs from 'fs' | |
import { join } from 'path' | |
import jwkToPem from 'jwk-to-pem' | |
import jwt from 'jsonwebtoken' | |
const certDir = '.cert' | |
const keystoreFile = join(certDir, 'keystore.json') | |
const raw = { | |
iss: 'test', |