package
0.0.0-20240626153409-143e19edde71
Repository: https://github.com/437d5/jwt-auth.git
Documentation: pkg.go.dev
# Functions
CreateToken func creates new JWT token with provided id of type primitive.ObjectID It returns JWT of string type and error if it occurs.
GetIDFromToken func takes parsed token *jwt.Token and returns id string and error.
ValidToken func get tokenString of type string, parses it and returns true if token is valid or false.
# Structs
No description provided by the author