setup new provider endpoint creation

This commit is contained in:
2026-08-06 20:19:11 -04:00
parent fd12ba02fd
commit 793904e942
4 changed files with 10 additions and 6 deletions
+2 -4
View File
@@ -16,11 +16,9 @@ func handleUser(w http.ResponseWriter, r *http.Request) {
return
}
auth.OAuthProviders[0].UserInfoEndpoint()
client := auth.DefaultProvider.Config.Client(context.Background(), token)
client := auth.OAuthConfigs[0].Client(context.Background(), token)
resp, err := client.Get(auth.OAuthProviders[0].UserInfoEndpoint())
resp, err := client.Get(auth.DefaultProvider.Provider.UserInfoEndpoint())
if err != nil {
http.Error(w, "Failed to fetch user: "+err.Error(), http.StatusInternalServerError)
return