Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
zebox committed Jan 8, 2022
1 parent 9c1d4c7 commit 869ec64
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions _example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,27 @@ import (
"encoding/json"
"encoding/pem"
"fmt"
"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
"github.com/golang-jwt/jwt"
"github.com/zebox/gojwk"
"github.com/zebox/gojwk/storage"
"io"
"log"
"math/big"
"net"
"net/http"
"strings"
"time"

"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
"github.com/golang-jwt/jwt"
"github.com/zebox/gojwk"
"github.com/zebox/gojwk/storage"
)

type token struct {
JWT string `json:"jwt"`
}

func main() {

ctx, ctxCancel := context.WithCancel(context.Background())
keys, jwk, err := initKeys()

Expand Down

0 comments on commit 869ec64

Please sign in to comment.