func New(clientID, clientSecret, redirectURL string, scopes ...string) *Provider {
	var c = &oauth2.Config{
		ClientID:     clientID,
		ClientSecret: clientSecret,
		RedirectURL:  redirectURL,
		Endpoint: oauth2.Endpoint{
			AuthURL:  authURL,
			TokenURL: tokenURL,
		},
		Scopes: []string{},
	}

	for _, scope := range scopes {
		c.Scopes = append(c.Scopes, scope)
	}

	return &Provider{
		name:        "mailru",
		oauthConfig: c,
	}
}
// New creates a new MAILRU provider and sets up important connection details.
// You should always call `mailru.New` to get a new provider. Never try to
// create one manually.
New creates a new MAILRU provider and sets up important connection details.
You should always call `mailru.New` to get a new provider. Never try to
create one manually.
// New creates a new MAILRU provider and sets up important connection details . // You should always call ` mailru . New ` to get a new provider . Never try to // create one manually .
func New(clientID, clientSecret, redirectURL string, scopes ...string) *Provider {
	var c = &oauth2.Config{
		ClientID:     clientID,
		ClientSecret: clientSecret,
		RedirectURL:  redirectURL,
		Endpoint: oauth2.Endpoint{
			AuthURL:  authURL,
			TokenURL: tokenURL,
		},
		Scopes: []string{},
	}
	for _, scope := range scopes {
		c.Scopes = append(c.Scopes, scope)
	}
	return &Provider{
		name:        "mailru",
		oauthConfig: c,
	}
}
func New ( clientID , clientSecret , redirectURL string , scopes ... string ) * Provider { var c = & oauth2 . Config { ClientID : clientID , ClientSecret : clientSecret , RedirectURL : redirectURL , Endpoint : oauth2 . Endpoint { AuthURL : authURL , TokenURL : tokenURL , } , Scopes : [ ] string { } , } for _ , scope := range scopes { c . Scopes = append ( c . Scopes , scope ) } return & Provider { name : " " , oauthConfig : c , } }
New creates a new MAILRU provider and sets up important connection details.
New creates a new MAILRU provider and sets up important connection details .