Question:
Custom app installation will redirect me to https://www.wix.com/installer/undefined
instead of redirect url with authentication code as param
Product:
Wix studio custom apps
What are you trying to achieve:
I’m trying to get an access_token to make Wix API calls
What have you already tried:
I have tried changing the redirect URL to heroku backend URL. It still showed the same error
Additional information:
- Steps to reproduce
- Create a Wix website from a template and publish
- Create a blank app with Wix Blocks and publish
- Update the appUrl to
https://example.com
and redirectUrl tohttps://example.com
in the app’s oauth page - Open the install link. User is redirected to
https://example.com/?token=xyz
- Create an install link with params token, redirectUrl and appId (
https://www.wix.com/installer/install?token=xyz&redirectUrl=https://example.com&appId=abc
) - Open the install link and click “Agree & Add”
- User is redirected to 404 error page (
https://www.wix.com/installer/undefined
) instead of redirectUrl with authentication token
- I was able to get the access token by following these steps few weeks back
- Tutorial I’m following: Wix API 2024: How to get an access token and refresh the access token? - Beehexa
- Video reproducing the issue: Troubleshooting Wix API OAuth Flow 🛠️ | Loom