mirror of
https://github.com/golang/oauth2.git
synced 2025-07-21 00:00:09 +08:00
Don't mutate the authorization endpoint.
Flow should be reusable, Options object should not be mutated by the calls performed on the flow.
This commit is contained in:
parent
0b8fcbadce
commit
2d3ce25e9a
@ -145,7 +145,7 @@ func New(options ...Option) (*Flow, error) {
|
||||
// access token. If set to "force" the user will always be prompted,
|
||||
// and the code can be exchanged for a refresh token.
|
||||
func (f *Flow) AuthCodeURL(state, accessType, prompt string) string {
|
||||
u := f.opts.AuthURL
|
||||
u := *f.opts.AuthURL
|
||||
v := url.Values{
|
||||
"response_type": {"code"},
|
||||
"client_id": {f.opts.ClientID},
|
||||
|
Loading…
x
Reference in New Issue
Block a user