It looks like the endpoint for authorization for OAuth2 for google is: https://pkg.go.dev/golang.org/x/oauth2/google?tab=doc#pkg-variables
var Endpoint = oauth2 <https://pkg.go.dev/golang.org/x/oauth2?tab=doc>.Endpoint <https://pkg.go.dev/golang.org/x/oauth2?tab=doc#Endpoint>{ AuthURL: "https://accounts.google.com/o/oauth2/auth", TokenURL: "https://oauth2.googleapis.com/token", AuthStyle: oauth2 <https://pkg.go.dev/golang.org/x/oauth2?tab=doc>.AuthStyleInParams <https://pkg.go.dev/golang.org/x/oauth2?tab=doc#AuthStyleInParams>, } But it looks like https://developers.google.com/identity/protocols/oauth2/web-server#httprest recommends this endpoint: Google's OAuth 2.0 endpoint is at > https://accounts.google.com/o/oauth2/v2/auth. This endpoint is accessible > only over HTTPS. Does this need to be updated, and how would I go about updating this? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/9986f25d-7fde-496c-9bab-4ad0da348d05o%40googlegroups.com.