Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Latest commit

 

History

History
34 lines (19 loc) · 696 Bytes

README.md

File metadata and controls

34 lines (19 loc) · 696 Bytes

THIS REPOSITORY IS NO LONGER MAINTANED

The new repository can be found at: https://github.com/golang-jwt/jwt

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