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
+1 -1
View File
@@ -38,7 +38,7 @@ func OAuthCallback(w http.ResponseWriter, r *http.Request) {
verifier := verifierCookie.Value
token, err := OAuthConfigs[0].Exchange(context.Background(), code, oauth2.VerifierOption(verifier))
token, err := DefaultProvider.Config.Exchange(context.Background(), code, oauth2.VerifierOption(verifier))
if err != nil {
http.Error(w, "Failed to exchange token: "+err.Error(), http.StatusInternalServerError)
return