refactor: use a boostrap service to bootstrap the app

This commit is contained in:
Stavros
2025-08-25 22:03:06 +03:00
parent dbadb096b4
commit 659d3561e0
9 changed files with 369 additions and 273 deletions

View File

@@ -11,6 +11,7 @@ import (
"tinyauth/internal/config"
"golang.org/x/oauth2"
"golang.org/x/oauth2/endpoints"
)
var GithubOAuthScopes = []string{"user:email", "read:user"}
@@ -39,6 +40,7 @@ func NewGithubOAuthService(config config.OAuthServiceConfig) *GithubOAuthService
ClientSecret: config.ClientSecret,
RedirectURL: config.RedirectURL,
Scopes: GithubOAuthScopes,
Endpoint: endpoints.GitHub,
},
}
}