From aec1f5df53477bed5fcf8dbc189300702a1bc189 Mon Sep 17 00:00:00 2001 From: Lakhan Samani Date: Wed, 14 Sep 2022 10:44:01 +0530 Subject: [PATCH] fix: github endpoint to get user emails --- server/constants/oauth_info_urls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/constants/oauth_info_urls.go b/server/constants/oauth_info_urls.go index c9bad78..2554e05 100644 --- a/server/constants/oauth_info_urls.go +++ b/server/constants/oauth_info_urls.go @@ -9,7 +9,7 @@ const ( // Ref: https://docs.github.com/en/developers/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps#3-your-github-app-accesses-the-api-with-the-users-access-token GithubUserInfoURL = "https://api.github.com/user" // Get github user emails when user info email is empty Ref: https://stackoverflow.com/a/35387123 - GithubUserEmails = "https://api/github.com/user/emails" + GithubUserEmails = "https://api.github.com/user/emails" // Ref: https://docs.microsoft.com/en-us/linkedin/shared/integrations/people/profile-api LinkedInUserInfoURL = "https://api.linkedin.com/v2/me?projection=(id,localizedFirstName,localizedLastName,emailAddress,profilePicture(displayImage~:playableStreams))"