# README
Jwt
jwt token generator based on golang-jwt, used under cinch layout.
Usage
go get -u github.com/go-cinch/common/jwt
NewServerContext
- new server context with jwt.ClaimsNewServerContextByUser
- new server context with UserNewServerContextByReplyMD
- new server context withx-md-global-code
andx-md-global-platform
FromServerContext
- get user from server contextTokenFromServerContext
- get jwt token from server contextAppendToClientContext
- append user to grpc clientAppendToReplyHeader
- append user to grpc response headerUser.CreateToken
- generate jwt token by User
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author