func (user *User) GetJwtToken() (string, error) {
	fmt.Println("jwt token email is : ", user.Email)
	token := jwt.NewWithClaims(jwt.SigningMethodHS256, jwt.MapClaims{
		"email": string(user.Email),
	})
	log.Println(token)

	secretKey := utils.EnvVar("TOKEN_KEY", "")
	log.Println(secretKey)
	tokenString, err := token.SignedString([]byte(secretKey))
	log.Println(tokenString, err)
	return tokenString, err
}
//GetJwtToken returns jwt token with user email claims
GetJwtToken returns jwt token with user email claims
// GetJwtToken returns jwt token with user email claims
func (user *User) GetJwtToken() (string, error) {
	fmt.Println("jwt token email is : ", user.Email)
	token := jwt.NewWithClaims(jwt.SigningMethodHS256, jwt.MapClaims{
		"email": string(user.Email),
	})
	log.Println(token)
	secretKey := utils.EnvVar("TOKEN_KEY", "")
	log.Println(secretKey)
	tokenString, err := token.SignedString([]byte(secretKey))
	log.Println(tokenString, err)
	return tokenString, err
}
func ( user * User ) GetJwtToken ( ) ( string , error ) { fmt . Println ( " " , user . Email ) token := jwt . NewWithClaims ( jwt . SigningMethodHS256 , jwt . MapClaims { " " : string ( user . Email ) , } ) log . Println ( token ) secretKey := utils . EnvVar ( " " , " " ) log . Println ( secretKey ) tokenString , err := token . SignedString ( [ ] byte ( secretKey ) ) log . Println ( tokenString , err ) return tokenString , err }
GetJwtToken returns jwt token with user email claims
GetJwtToken returns jwt token with user email claims