<commit_before>package authkit

// some constants
const (
	Facebook Provider = "facebook"
	Google            = "google"
	Github            = "github"
	Live              = "live"
	LinkedIn          = "linkedin"
)

// A ProviderRegistry contains all registerd providers.
type ProviderRegistry map[Provider]AuthRegistration

var (
	defaultBackends = ProviderRegistry{
		Facebook: AuthRegistration{
			Network:        Facebook,
			Scopes:         []string{"public_profile", "email"},
			AuthURL:        "https://www.facebook.com/dialog/oauth/",
			AccessTokenURL: "https://graph.facebook.com/oauth/access_token",
			AccessType:     "offline",
			UserinfoBase:   "https://graph.facebook.com/v3.0",
			UserinfoURLs:   []string{"/me?fields=email,name,gender,locale,picture"},
			PathID:         "url[0].id",
			PathEMail:      "url[0].email",
			PathName:       "url[0].name",
			PathPicture:    "url[0].picture.data.url",
			PathCover:      "",
		},
		Google: AuthRegistration{
			Network:        Google,
			Scopes:         []string{"openid", "profile", "email", "https://www.googleapis.com/auth/plus.me"},
			AuthURL:        "https://accounts.google.com/o/oauth2/auth",
			AccessTokenURL: "https://accounts.google.com/o/oauth2/token",
			AccessType:     "offline",
			UserinfoBase:   "https://www.googleapis.com",
			UserinfoURLs:   []string{"/plus/v1/people/me"},
			PathID:         "url[0].id",
			PathEMail:      "url[0].emails[0].value",
			PathName:       "url[0].displayName",
			PathPicture:    "url[0].image.url",<commit_msg>reduce the fields from facebook login<commit_after>package authkit

// some constants
const (
	Facebook Provider = "facebook"
	Google            = "google"
	Github            = "github"
	Live              = "live"
	LinkedIn          = "linkedin"
)

// A ProviderRegistry contains all registerd providers.
type ProviderRegistry map[Provider]AuthRegistration

var (
	defaultBackends = ProviderRegistry{
		Facebook: AuthRegistration{
			Network:        Facebook,
			Scopes:         []string{"public_profile", "email"},
			AuthURL:        "https://www.facebook.com/dialog/oauth/",
			AccessTokenURL: "https://graph.facebook.com/oauth/access_token",
			AccessType:     "offline",
			UserinfoBase:   "https://graph.facebook.com/v3.0",
			UserinfoURLs:   []string{"/me?fields=email,name,picture"},
			PathID:         "url[0].id",
			PathEMail:      "url[0].email",
			PathName:       "url[0].name",
			PathPicture:    "url[0].picture.data.url",
			PathCover:      "",
		},
		Google: AuthRegistration{
			Network:        Google,
			Scopes:         []string{"openid", "profile", "email", "https://www.googleapis.com/auth/plus.me"},
			AuthURL:        "https://accounts.google.com/o/oauth2/auth",
			AccessTokenURL: "https://accounts.google.com/o/oauth2/token",
			AccessType:     "offline",
			UserinfoBase:   "https://www.googleapis.com",
			UserinfoURLs:   []string{"/plus/v1/people/me"},
			PathID:         "url[0].id",
			PathEMail:      "url[0].emails[0].value",
			PathName:       "url[0].displayName",
			PathPicture:    "url[0].image.url",
{'fraction_non_alphanumeric': 0.15851272015655576, 'fraction_numerical': 0.0091324200913242, 'mean_word_length': 2.843358395989975, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1616223', 'n_tokens_mistral': 1121, 'n_tokens_neox': 1001, 'n_words': 166}