We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 751bf61 commit b4ee370Copy full SHA for b4ee370
_examples/jwt/main.go
@@ -11,7 +11,6 @@ import (
11
"net/http"
12
"time"
13
14
- gojwt "github.com/dgrijalva/jwt-go/v4"
15
"github.com/gorilla/mux"
16
"github.com/shaj13/libcache"
17
_ "github.com/shaj13/libcache/fifo"
@@ -60,9 +59,9 @@ func getBookAuthor(w http.ResponseWriter, r *http.Request) {
60
59
61
func setupGoGuardian() {
62
keeper = jwt.StaticSecret{
63
- ID: "secret-id",
64
- Secret: []byte("secret"),
65
- Method: gojwt.SigningMethodHS256,
+ ID: "secret-id",
+ Secret: []byte("secret"),
+ Algorithm: jwt.HS256,
66
}
67
cache := libcache.FIFO.New(0)
68
cache.SetTTL(time.Minute * 5)
0 commit comments