2021-07-17 21:59:50 +05:30
|
|
|
package constants
|
|
|
|
|
2022-01-17 11:32:13 +05:30
|
|
|
const (
|
2021-07-17 21:59:50 +05:30
|
|
|
// Ref: https://github.com/qor/auth/blob/master/providers/google/google.go
|
2021-12-17 21:25:07 +05:30
|
|
|
// deprecated and not used. instead we follow open id approach for google login
|
2021-07-17 21:59:50 +05:30
|
|
|
GoogleUserInfoURL = "https://www.googleapis.com/oauth2/v3/userinfo"
|
|
|
|
// Ref: https://github.com/qor/auth/blob/master/providers/facebook/facebook.go#L18
|
2021-09-05 03:57:29 +05:30
|
|
|
FacebookUserInfoURL = "https://graph.facebook.com/me?fields=id,first_name,last_name,name,email,picture&access_token="
|
2021-07-17 21:59:50 +05:30
|
|
|
// 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"
|
|
|
|
)
|