Skip to main content
← Data, API & Backend
Data, API & Backend January 7, 2022 · 6 replies

Custom authentication with Xano: issue with redirection after login or signup

Archived from the Bravo community forum (2021–2026). Some answers may refer to older versions of Bravo.

Hi, this is probably very basic, but I can't get users to be redirected to the home screen after they've logged in or signed up, even though I carefully followed the tutorials.

I'm using the figma file template "custom authentication" and Xano's default endpoints for login, signup, and user info (me).

Xano seems correctly set up in Bravo:

image.png

Fundamentally I'm not sure to understand how Bravo knows to which screen I wish to redirect users after successful login. The home screen doesn't have a specific tag in the Figma file... (?)

With login, we set the ${authToken}, so we can't also indicate a page to navigate to in Bravo form's response. I've tried to directly add a prototype interaction in Figma to direct to the home screen, but this doesn't work either (I guess it's not the right method).

With signup, we are supposed to indicate to which page to navigate to, so it makes a bit more sense to me, but I get to a blank page rather than the home page (I can see that the user gets created in the Xano database though).

@bravo, my project URL is https://projects.bravostudio.app/apps/01FRVC4GSX7FRM4AYYPXSX0AAV/screens

Any pointers for a newbie? :)

6 replies

Lucien January 8, 2022

OK, got the answer from  🙏

It's set on Figma's side. Details in Figma's documentation can be found here.

Lucien January 8, 2022

Everything works fine with Google OAuth, but not with custom authentication:

  • User isn't directed to home page after login
  • User is directed to a blank page after signup

I know the custom authentication feature is still in beta at this time. Could this be why?

Ethan April 6, 2022

Dear All,

I am facing the same issues by using Custom Authentication via Xano. I have rechecked and rechecked again on the https://docs.bravostudio.app/integrations/user-authentication/custom-authentication#login-screen but I have been stuck for a couple of days. Any help will be much appreciated. I have used [page:login] [action:login] [component:input-mail], [component:input-password] Set Access Token to $[accessToken]; ensure where is starting flow. What else could be wrong?

I am using 100% Bravo Studio's sample file https://www.figma.com/file/qwABm36RRLycXZr1CHJapX/Bravo-Sample%3A-Custom-Authentication-_duplicate?node-id=0%3A1 and i am still could diverted to the home page.

Pierre July 20, 2022

hi there! has this issue been solved ? 
Thank you :)

Wrote something in this thread and want it removed? Request removal

Still stuck?

Ask the community on Discord

This archive is read-only. New questions, office hours and product updates now happen in the Bravo Discord.

Join the Discord