markbates / goth

Package goth provides a simple, clean, and idiomatic way to write authentication packages for Go web applications.
https://blog.gobuffalo.io/goth-needs-a-new-maintainer-626cd47ca37b
MIT License
5.2k stars 566 forks source link

wecom provider has bug. cached client will be using for everybody.... #485

Open rushairer opened 1 year ago

rushairer commented 1 year ago

https://github.com/markbates/goth/blob/b5cb5a628f070880f909731a01c1952aaa494c46/providers/wecom/wecom.go#L124

wecom provider has bug. cached client will be using for everybody....

func (p *Provider) fetchToken() (*oauth2.Token, error) {
    if p.token != nil && p.token.Valid() {
        return p.token, nil
    }