setup new provider endpoint creation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user