Add auth folder.

This commit is contained in:
Yang Luo
2021-02-14 14:34:03 +08:00
parent 40587f35e3
commit 001496b90f
11 changed files with 42 additions and 46 deletions

View File

@ -41,7 +41,7 @@ var githubOauthConfig = &oauth2.Config{
Endpoint: githubEndpoint,
}
func (c *ApiController) AuthGithub() {
func (c *ApiController) AuthLogin() {
providerName := c.Input().Get("provider")
code := c.Input().Get("code")
state := c.Input().Get("state")