You've already forked pocketbase
mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-11-24 07:04:51 +02:00
[#6690] updated patreon to use go oauth2/endpoints
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
|||||||
|
|
||||||
"github.com/pocketbase/pocketbase/tools/types"
|
"github.com/pocketbase/pocketbase/tools/types"
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
|
"golang.org/x/oauth2/endpoints"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@@ -29,8 +30,8 @@ func NewPatreonProvider() *Patreon {
|
|||||||
displayName: "Patreon",
|
displayName: "Patreon",
|
||||||
pkce: true,
|
pkce: true,
|
||||||
scopes: []string{"identity", "identity[email]"},
|
scopes: []string{"identity", "identity[email]"},
|
||||||
authURL: "https://www.patreon.com/oauth2/authorize",
|
authURL: endpoints.Patreon.AuthURL,
|
||||||
tokenURL: "https://www.patreon.com/api/oauth2/token",
|
tokenURL: endpoints.Patreon.TokenURL,
|
||||||
userInfoURL: "https://www.patreon.com/api/oauth2/v2/identity?fields%5Buser%5D=full_name,email,vanity,image_url,is_email_verified",
|
userInfoURL: "https://www.patreon.com/api/oauth2/v2/identity?fields%5Buser%5D=full_name,email,vanity,image_url,is_email_verified",
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user