All Projects → gogf → gf-jwt

gogf / gf-jwt

Licence: MIT license
GoFrame HTTP JWT middleware.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to gf-jwt

Gf
GoFrame is a modular, powerful, high-performance and enterprise-class application development framework of Golang.
Stars: ✭ 6,501 (+8929.17%)
Mutual labels:  goframe
gf-home
Source codes of GoFrame home site.
Stars: ✭ 67 (-6.94%)
Mutual labels:  goframe
focus-single
Single repo demo project using GoFrame.
Stars: ✭ 26 (-63.89%)
Mutual labels:  goframe
focus
Community system build using GoFrame.
Stars: ✭ 103 (+43.06%)
Mutual labels:  goframe
swagger
Swagger wrapper for GoFrame project.
Stars: ✭ 30 (-58.33%)
Mutual labels:  goframe
gfstudy
go frame框架基础介绍
Stars: ✭ 89 (+23.61%)
Mutual labels:  goframe

gf-jwt v2

This is a middleware for Gf framework.

It uses jwt-go to provide a jwt authentication middleware. It provides additional handler functions to provide the login api that will generate the token and an additional refresh handler that can be used to refresh tokens.

Use

Download and install

$ go get github.com/gogf/gf-jwt/v2

Import

import "github.com/gogf/gf-jwt/v2"

login

check user info

refresh token

logout

check user info again

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].