Hey guys. I’m dabbling in web apps now for the first time and I am having major issues post-build with authenticating. I built on the latest available version.
Basically, what I’m doing is passwordless login, so:
- User enters their email
- User receives a magic link
- User clicks the magic link which passes a magic token back to the web app
- The magic token is used to authenticate the user and store an auth token
This works fine in Preview mode. I receive the email and hardcode the preview URL with Page ID plus my query parameter, so it looks like:
https://preview.appgyver.com/289329/starhatch-web/page.Page5?magic_token=RpUt4PA23xbNKkCtN96V
In the build mode version I use:
https://starhatch.appgyverapp.com/page.Page5?magic_token=RpUt4PA23xbNKkCtN96V
This just returns:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
AccessDenied
Access Denied
AQNEJVYD8SHMQ5GT
vCYMfZ91xFPHul9zMvNn7tID5Lf+qi1e9pOgtbN/2kns63RC5BoP7y/NyiewWXvlM7sj4MJ0hKU=
Do I just need to host it myself, eg. on S3?
For what its worth, I’m basically doing manual authentication - authentication is disabled because it seems like AG doesn’t support query parameters being passed into page parameters while in initial view. So effectively, I manually check for the auth token on every page I need auth for. Not sure if this is related.