login.go
changeset 159 408aa794d9bb
parent 138 23d3a518d0ad
child 162 68df3a01e1a7
equal deleted inserted replaced
158:083d33bb419b 159:408aa794d9bb
    15 )
    15 )
    16 
    16 
    17 // UserToken represents a user token as returned by the Mastodon API
    17 // UserToken represents a user token as returned by the Mastodon API
    18 type UserToken struct {
    18 type UserToken struct {
    19 	AccessToken string `json:"access_token"`
    19 	AccessToken string `json:"access_token"`
    20 	CreatedAt   int    `json:"created_at"`
    20 	CreatedAt   int64  `json:"created_at"`
    21 	Scope       string `json:"scope"`
    21 	Scope       string `json:"scope"`
    22 	TokenType   string `json:"token_type"`
    22 	TokenType   string `json:"token_type"`
    23 }
    23 }
    24 
    24 
    25 // LoginBasic does basic user authentication
    25 // LoginBasic does basic user authentication