Hey! So basically, I got my Xano authentication working. I know it’s working because whenever I click “Sign Up” a new user is added in my Xano database, I can see it. However, the next piece of functionality I want to implement is sending the user to a new page once they’ve signed up. I’ve tried implementing that, but it’s not working. The user is signed up on the backend, but on the frontend, it’s as if nothing happened.
I could be completely off here, but you may need a step in the workflow right after “sign up with Xano” to “Fetch Collection” and fetch the “user” collection. I find in most cases I just needed to re-fetch the collection from the database as Xano doesn’t provide Weweb with realtime updates.
Here’s what my configuration for Xano looks like. For context, for the role configuration thing, I just created a random role in WeWeb and named it “Role” and put it there, and didn’t do anything else related to that, if that’s a problem.
On that screen, when you hit the test button, whats the error that it gives you?
Also, when I check Xano for the API responses to see what happens, it appears that it signs the user up successfully, but then, when it tried to retrieve it with the “Fetch User”, at least that’s what I think this is, this is what happens :
Error: Request failed with status code 403
can you expand the input and output dropdowns on this. Also, It looks like this is the API for fetching the user because its a GET. WeWeb is saying your issue is during the signup (even though its adding to the database). But that should be a POST request.
If you hit the test icon in the workflow card it will show you why its turning red and I find its normally easier to troubleshoot from there.
It appears it signs the user up, but can’t get it?
403 mean you’re authenticated but doesn’t have permission to perform this request. I don’t know why. You have to investigate on Xano Side May be because you’re trying to signup but you are already authenticated so it doesn’t work ? Or maybe because you’re trying to signup with already used credentials ?
Also, your GET request has an 500 error, its an error happening on your Xano instance, do you have access to some logs so you can understand why the /auth/me is not working on your Xano ? Does it work when you try to request on Xano ?
Here’s some images of logs and what’s happening, do you think you can find out the problem
:
Your user table linked to your auth/me API is deleted. You have to recreate your get record action with newly created user table
Tysm. Also, what’s the difference between fetching a user ang logging in a user?
Because when I login a user, I get this error: