Xano redirect not working

  • chrislaupama-1312186460006252664

    Chris Laupama

    4 months ago

    I've created a redirect to check if my current user is logged in and if they are not then redirect to them to the login page, however it's not working and ALWAYS redirects them to the login page?
    1312186460266561536-Screenshot_2024-11-30_at_11.39.14_AM.png
  • 1312186651711115395-Screenshot_2024-11-30_at_11.41.00_AM.png
  • jocenunes-1312188006098010145

    Joce Nunes

    4 months ago

    Deactivate the serve side fetching
  • chrislaupama-1312188919642853486

    Chris Laupama

    4 months ago

    I did that, now what's happening is it's constantly refreshing and maxing out my API rate limit?
  • chrislaupama-1312200736091668520

    Chris Laupama

    4 months ago

    Changed it to just this, and it's still not working, it always redirects to the / route
    1312200735852855347-Screenshot_2024-11-30_at_12.36.50_PM.png
  • chrislaupama-1312201545210794036

    Chris Laupama

    4 months ago

    Cookies are definately set correctly, I am using them else where absolutely fine.

    But upon checking the current logged in user it's just redirecting to the / route each time.

    When I disable server side fetching any content on the page that utilises the /auth/me API ends up flickering for example I'm using the current logged in users email and name on the page, they just consistently flicker and re-load which ends up hitting the API rate limit.
  • max.kayr-1312261893552865333

    Max

    4 months ago

    Your "else" needs to be falsy, but you have an empty string
    πŸ”₯1
    πŸ™πŸ½1
  • chrislaupama-1312270870533898253

    Chris Laupama

    4 months ago

    ah, so just give it "null"
  • let me try that
  • chrislaupama-1312271992077946961

    Chris Laupama

    4 months ago

    You legend, it worked. Just remade the formula, left the default "false" and it works like a charm.
    1312271991981735966-Screenshot_2024-11-30_at_5.20.16_PM.png
    πŸ™Œ1
  • max.kayr-1312282062727811162

    Max

    4 months ago

    Nice πŸ’ͺ🏼😁

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code β€” but accessible to your entire team!

Try toddle β€” it's free!

Β© Copyright 2024 toddle. All rights reserved.