Documentation ¶
Index ¶
- func Auth(c *fiber.Ctx) error
- func GoogleOauth(c *fiber.Ctx) error
- func Login(c *fiber.Ctx) error
- func NewUser(c *fiber.Ctx) error
- func Setup()
- func TwitterOauth10RequestToken(c *fiber.Ctx) error
- func TwitterOauth20Token(c *fiber.Ctx)
- func UpdateGoogleUserInfo(u *User, claims map[string]interface{}) error
- type GoogleGetGoogleUserInfoByIDTokenResponse
- type GoogleOauthRequest
- type TwitterOauth10RequestTokenRequest
- type TwitterOauth10RequestTokenResponse
- type User
- type UserBindProvider
- type UserProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoogleOauth ¶
func GoogleOauth(c *fiber.Ctx) error
func TwitterOauth10RequestToken ¶
func TwitterOauth10RequestToken(c *fiber.Ctx) error
func TwitterOauth20Token ¶
func TwitterOauth20Token(c *fiber.Ctx)
func UpdateGoogleUserInfo ¶
Types ¶
type GoogleOauthRequest ¶
type GoogleOauthRequest struct {
IDToken string `json:"id_token"`
}
type User ¶
type User struct { gorm.Model Account string `gorm:"size:255; unique"` Password string `gorm:"size:255" json:"password"` UserProfile UserProfile `json:"profile"` UserBindProvider []UserBindProvider }
func GetUserByJwtToken ¶
func GetUserByJwtToken(c *fiber.Ctx) *User
func GetUserByProvider ¶
type UserBindProvider ¶
Click to show internal directories.
Click to hide internal directories.