kakao

package
v0.0.0-...-29f350e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AuthType = "kakao"

AuthType value for kakao

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Email string `json:"email"`
}

Account for kakao

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client ...

func NewClient

func NewClient(baseURL string, token string) *Client

NewClient ...

func (*Client) GetKakaoUserInfo

func (c *Client) GetKakaoUserInfo() (*User, error)

GetKakaoUserInfo ...

type LoginHandler

type LoginHandler struct {
	Conf          configs.Kakao
	MemberService service.MemberService
	TokenService  service.TokenService
}

func (LoginHandler) Handle

func (k LoginHandler) Handle(authorizationCode string, identityToken string) gin.HandlerFunc

type Profile

type Profile struct {
	NickName     string `json:"nickname,omitempty"`
	ProfileImage string `json:"profile_image,omitempty"`
}

Profile for kakao

type User

type User struct {
	Account Account `json:"kakao_account"`
	Profile Profile `json:"properties"`
}

User struct for kakao

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL