• Stars
    star
    115
  • Rank 305,916 (Top 7 %)
  • Language
    Go
  • License
    MIT License
  • Created over 5 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

GoFrame HTTP JWT middleware.

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

More Repositories

1

gf

GoFrame is a modular, powerful, high-performance and enterprise-class application development framework of Golang.
Go
10,033
star
2

awesome-gf

Awesome projects using GoFrame.
322
star
3

gf-demo-user

A simple user API service.
Go
315
star
4

gf-cli

GoFrame Command Line Interface, which is your helpmate for building GoFrame application with convenience.
Go
250
star
5

focus

Community system build using GoFrame.
Go
112
star
6

focus-single

Single repo demo project using GoFrame.
Go
112
star
7

katyusha

[WIP]Katyusha micro service development framework.
Go
84
star
8

greuse

Package greuse provides Listen and Dial functions that set socket options in order to be able to reuse ports. You should only use this package if you know what SO_REUSEADDR and SO_REUSEPORT are.
Go
55
star
9

swagger

Swagger wrapper for GoFrame project.
Go
30
star
10

gf-demo-grpc

A simple GRPC service.
Go
13
star
11

gf-demo-chat

A simple MVC chat service.
Go
13
star
12

gcache-adapter

Adapters for GoFrame package gcache.
Go
12
star
13

goframe.org-pdf

Standalone document of goframe.org in pdf.
11
star
14

csrf

CSRF middleware for GoFrame web server.
Go
8
star
15

polaris

Polaris with GoFrame.
Go
7
star
16

guuid

Package guuid generates and inspects UUIDs.
Go
7
star
17

katyusha-demos

[WIP] Demonstrations for Katyusha.
Go
5
star
18

gf-tracing

GoFrame tracing feature demonstrations.
Go
4
star
19

template-mono

GoFrame Template For MonoRepo
Go
4
star
20

gf-empty

An empty project of GoFrame.
Go
3
star
21

selfupdate

Go
3
star
22

template-single

GoFrame Template For SingleRepo
Go
3
star
23

gflock

Package gflock implements a concurrent-safe sync.Locker interface for file locking.
Go
1
star