Bot releases are hidden (Show)
Published by int128 about 4 years ago
LocalServerAddress
and LocalServerPort
have been removed. Use LocalServerBindAddress
instead.
Published by int128 over 4 years ago
Published by int128 over 4 years ago
Published by int128 over 4 years ago
Published by int128 over 4 years ago
Published by int128 over 4 years ago
Published by int128 over 4 years ago
v0.0.0-20200107190931-bf48bf16ab8d
(#27)Published by int128 almost 5 years ago
Published by int128 almost 5 years ago
SkipOpenBrowser
has been removed and oauth2cli does not open the browser. Instead use LocalServerReadyChan
and open the browser manually.ShowLocalServerURL
has been removed. Instead use LocalServerReadyChan
.See also the example.
API specification has been changed as follows:
// new:
token, err := oauth2cli.GetToken(ctx, oauth2cli.Config{
OAuth2Config: oauth2.Config{/* ... */},
}
// old:
flow := oauth2cli.AuthCodeFlow{
Config: oauth2.Config{/* ... */},
}
token, err := flow.GetToken(ctx)
LocalServerSuccessResponse
optionType of AuthCodeFlow.LocalServerPort
has been changed to []int
from int
. If you set a value (e.g. 8000
), you need to change it to a slice (e.g. []int{8000}
).
Published by int128 almost 6 years ago
First release!