Documentation
¶
Index ¶
- func FacebookAuth(accessToken string, userId string) (interface{}, error)
- func GenerateJWT(user interface{}) (string, error)
- func GetHttpJson(url string, target interface{}) error
- func HashPassword(password string) ([]uint8, error)
- func LoginAdminUser(email string, password string) (interface{}, error)
- func LoginUser(email string, password string) (interface{}, error)
- func RegisterUser(name string, email string, password string, isFacebook bool) (interface{}, error)
- type FacebookMe
- type Picture
- type PictureData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FacebookAuth ¶
func GenerateJWT ¶
TODO: are tokens validated against their expiry date?
func GetHttpJson ¶
func HashPassword ¶
func LoginAdminUser ¶
Types ¶
type FacebookMe ¶
type FacebookMe struct { Id string `json:"id"` Name string `json:"name"` Email string `json:"email"` Picture PictureData `json:"picture"` }
type PictureData ¶
type PictureData struct {
Data Picture `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.