Skip to content

Instantly share code, notes, and snippets.

View souzace's full-sized avatar

Fabio Souza souzace

  • Fortaleza, Ceará
  • 06:47 (UTC -03:00)
  • LinkedIn in/souzace
View GitHub Profile
//original code by @Elliot_f of Tutorial Edge youtube channel: https://www.youtube.com/watch?v=-Scg9INymBs
//some adaptations to use with gorilla/mux
package main
import (
"encoding/json"
"fmt"
jwt "github.com/dgrijalva/jwt-go"
"github.com/gorilla/mux"