From 5d32d22ff5feca99fe74eeedd7336a4138b13885 Mon Sep 17 00:00:00 2001 From: "Willow (GHOST)" Date: Tue, 8 Apr 2025 03:33:52 +0100 Subject: [PATCH] [#6690] updated patreon to use go oauth2/endpoints --- tools/auth/patreon.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/auth/patreon.go b/tools/auth/patreon.go index b079c99a..ccccc795 100644 --- a/tools/auth/patreon.go +++ b/tools/auth/patreon.go @@ -6,6 +6,7 @@ import ( "github.com/pocketbase/pocketbase/tools/types" "golang.org/x/oauth2" + "golang.org/x/oauth2/endpoints" ) func init() { @@ -29,8 +30,8 @@ func NewPatreonProvider() *Patreon { displayName: "Patreon", pkce: true, scopes: []string{"identity", "identity[email]"}, - authURL: "https://www.patreon.com/oauth2/authorize", - tokenURL: "https://www.patreon.com/api/oauth2/token", + authURL: endpoints.Patreon.AuthURL, + 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", }} }