Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
feat: add scope for firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Dec 4, 2019
1 parent fbeb9f2 commit 85a9fee
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion oauth/oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,18 @@ func getUserDataFromGoogle(code string) ([]byte, error) {
}

func StartLocalhostServer() {

scopes := []string{
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/firebase",
}

googleOauthConfig = &oauth2.Config{
RedirectURL: fmt.Sprintf("http://localhost:8000%s", callbackPath),
ClientID: os.Getenv("GOOGLE_OAUTH_CLIENT_ID"),
ClientSecret: os.Getenv("GOOGLE_OAUTH_CLIENT_SECRET"),
Scopes: []string{"https://www.googleapis.com/auth/userinfo.email"},
Scopes: scopes,
Endpoint: google.Endpoint,
}

Expand Down

0 comments on commit 85a9fee

Please sign in to comment.