//
pkg.gl
Category
github.com/chrikar/go-graphql-hackernews
pkg
jwt
package
0.0.0-20241219102514-a538fde60d6b
Repository:
https://github.com/chrikar/go-graphql-hackernews.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
3
Dependents
2
Files
34 SLOC
#
Functions
GenerateToken
GenerateToken generates a jwt token and assign a username to it's claims and return it.
ParseToken
ParseToken parses a jwt token and returns the username in it's claims.
#
Variables
SecretKey
secret key being used to sign tokens.