func ValidateJwtAccessToken(jwtAccessToken string, jwtSecretKey []byte) bool {
	jwtPayload := &JwtPayload{}
	jwtToken, err := jwt.ParseWithClaims(jwtAccessToken, jwtPayload, func(token *jwt.Token) (interface{}, error) {
		return jwtSecretKey, nil
	})
	if err != nil || !jwtToken.Valid {
		return false
	}
	return true
}
ValidateJwtAccessToken return the JWT access token validation status
package auth
import (
	"encoding/json"
	"time"
	"github.com/dgrijalva/jwt-go"
)
type JwtPayload struct {
	Id       string `json:"id"`
	Username string `json:"username"`
	jwt.StandardClaims
}
func CreateJwtAccessToken(payload map[string]string, jwtSecretKey []byte) string {
	tokenExpirationTime := time.Now().Add(15 * time.Minute)
	jwtPayload := &JwtPayload{
		Id:       payload["id"],
		Username: payload["username"],
		StandardClaims: jwt.StandardClaims{
			ExpiresAt: tokenExpirationTime.Unix(),
		},
	}
	token := jwt.NewWithClaims(jwt.SigningMethodHS256, jwtPayload)
	jwtAccessToken, _ := token.SignedString(jwtSecretKey)
	return jwtAccessToken
}