package
0.0.0-20210408190322-ed452e1afa93
Repository: https://github.com/akshit8/reddit-clone-api.git
Documentation: pkg.go.dev

# Functions

NewJWTMaker creates a new JWT maker.
NewPayload creates a new token payload with specific userId, username and duration.

# Variables

Different types of errors returned by VerifyToken function.
Different types of errors returned by VerifyToken function.

# Structs

JWTMaker is JSON Web Token maker.
Payload contains payload data of the token.

# Interfaces

Maker is an interface for manangin tokens.