Skip to content

Instantly share code, notes, and snippets.

View CyrusRoshan's full-sized avatar
😀
Uncaught TypeError: Cannot read properties of undefined (reading 'status')

Cyrus Roshan CyrusRoshan

😀
Uncaught TypeError: Cannot read properties of undefined (reading 'status')
View GitHub Profile
@CyrusRoshan
CyrusRoshan / cfworker_verify_cfaccess_jwt.ts
Last active September 9, 2019 14:04 — forked from bcnzer/cloudflareworker-verifyjwt.js
Sample Cloudflare worker that gets a Cloudflare Access JWT, validates it, and returns a result
import * as cookie from 'cookie';
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request));
});
/**
* Fetch and log a request
* @param {Request} request
*/
@CyrusRoshan
CyrusRoshan / .vimrc
Last active January 6, 2018 03:43 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" Load plugins here
call plug#begin('~/.vim/plugged')
Plug 'octref/rootignore'