func (u *User) Email() string {
	return u.Data().Get(spotifyKeyEmail).Str()
}
Email gets the users email address.
package spotify
import (
	"strconv"
	"github.com/stretchr/gomniauth/common"
	"github.com/stretchr/objx"
)
const (
	spotifyKeyID         string = "id"
	spotifyKeyName       string = "display_name"
	spotifyKeyNickname   string = "username"
	spotifyKeyEmail      string = "email"
	spotifyKeyPictureUrl string = "images[0].url"
)
type User struct {
	data objx.Map
}
func NewUser(data objx.Map, creds *common.Credentials, provider common.Provider) *User {
	user := &User{data}
	creds.Set(common.CredentialsKeyID, data[spotifyKeyID])
	user.data[common.UserKeyProviderCredentials] = map[string]*common.Credentials{
		provider.Name(): creds,
	}
	return user
}