Hello! This PR re-adds the encodeURIComponent to the redirect_uri when fetching tokens.
I noticed the utils refactor in #147 broke PayPal login because the redirect_uri encode was removed, I should have left a comment in the code when I made the PayPal provider PR (#108) saying that at the moment PayPal login for some reason requires encoding the redirect_uri when fetching the tokens.
Hello! This PR re-adds the
encodeURIComponent
to theredirect_uri
when fetching tokens.I noticed the utils refactor in #147 broke PayPal login because the
redirect_uri
encode was removed, I should have left a comment in the code when I made the PayPal provider PR (#108) saying that at the moment PayPal login for some reason requires encoding theredirect_uri
when fetching the tokens.For testing:
REST API apps
Click onDefault Application
Client ID
andSecret key 1
.env
file and add the credentials respectivelyNUXT_OAUTH_PAYPAL_CLIENT_ID
andNUXT_OAUTH_PAYPAL_CLIENT_SECRET
Features
section, and enableLog in with PayPal
Advanced Settings
link below theLog in with PayPal
checkboxReturn URL
tohttp://127.0.0.1:3000/auth/paypal
Full Name
andEmail
Enable customers who have not yet confirmed their email with PayPal to log in to your app.