gin middleware
Before using the middleware, please remember to init headerName
secret
& expire
.
Here is the example:
mdw.SetSecret("balabala..")
mdw.SetHeaderName("xxx")
mdw.SetJWTExpire(20) //20 seconds
Full example can be seen here
gin middleware
gin middleware
Before using the middleware, please remember to init headerName
secret
& expire
.
Here is the example:
mdw.SetSecret("balabala..")
mdw.SetHeaderName("xxx")
mdw.SetJWTExpire(20) //20 seconds
Full example can be seen here
gin middleware
MIT License