文件名称:goji-jwtm:goji 框架 JSON Web Token (JWT) 中间件
文件大小:4KB
文件格式:ZIP
更新时间:2024-07-21 07:40:46
Go
goji JWT 中间件 JSON Web Token (JWT) 中间件。 例子: package main import ( "encoding/json" "fmt" "net/http" "github.com/dgrijalva/jwt-go" "github.com/williambailey/goji-jwtm" "github.com/zenazn/goji" "github.com/zenazn/goji/web" ) func main () { /* Use a jwt handler for every request. The handler will and look for a JWT in the authorization header bearer value. A CValue gets injecte
【文件预览】:
goji-jwtm-master
----.travis.yml(44B)
----LICENSE(1KB)
----jwt.go(2KB)
----jwt_test.go(4KB)
----README.md(2KB)