<commit_before>package auth

import (
	"github.com/qor/auth"
	"github.com/qor/auth_themes/clean"
	"github.com/qor/qor-example/app/models"
	"github.com/qor/qor-example/config"
	"github.com/qor/qor-example/db"
)

// Auth initialize auth
var Auth = clean.New(&auth.Config{
	DB:        db.DB,
	Render:    config.View,
	Mailer:    config.Mailer,
	UserModel: models.User{},
})<commit_msg>Use default providers<commit_after>package auth

import (
	"github.com/qor/auth"
	"github.com/qor/auth/database"
	"github.com/qor/auth/oauth/github"
	"github.com/qor/auth/oauth/google"
	"github.com/qor/auth/phone"
	"github.com/qor/qor-example/app/models"
	"github.com/qor/qor-example/config"
	"github.com/qor/qor-example/db"
)

// Auth initialize auth
var Auth = auth.New(&auth.Config{
	DB:        db.DB,
	Render:    config.View,
	Mailer:    config.Mailer,
	UserModel: models.User{},
})

func init() {
	Auth.RegisterProvider(database.New(&database.Config{
		Confirmable: true,
	}))
	Auth.RegisterProvider(phone.New())
	Auth.RegisterProvider(github.New(&config.Config.Github))
	Auth.RegisterProvider(google.New(&config.Config.Google))
}
{'fraction_non_alphanumeric': 0.1647269471799463, 'fraction_numerical': 0.0, 'mean_word_length': 4.152073732718894, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5480896', 'n_tokens_mistral': 440, 'n_tokens_neox': 437, 'n_words': 57}