Documentation ¶
Index ¶
- func EchoContextFromContext(ctx context.Context) (*echo.Context, error)
- func GenAccessToken(ctx context.Context, userID uuid.UUID) (string, error)
- func GenRfreshToken(ctx context.Context, userID uuid.UUID) (string, error)
- func JWTMiddleware() echo.MiddlewareFunc
- func JwtValidate(ctx context.Context, token string) (*jwt.Token, error)
- type CustomContext
- type JwtCustomClaim
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EchoContextFromContext ¶
func JWTMiddleware ¶
func JWTMiddleware() echo.MiddlewareFunc
Types ¶
type CustomContext ¶
type CustomContext struct { echo.Context // contains filtered or unexported fields }
type JwtCustomClaim ¶
type JwtCustomClaim struct { ID uuid.UUID jwt.StandardClaims }
func CtxValue ¶
func CtxValue(ctx context.Context) *JwtCustomClaim
Click to show internal directories.
Click to hide internal directories.