How to send xano user id through toddle

  • pedrocaldo-1342615465486188697

    pedrocaldo

    17 hours ago

    Hello!

    I've created some DBs in Xano and their respective endpoints.

    I would like to show the content based on the authenticated user ID. I made the custom query in Xano, but I don't know which header I need to send and with which information to have access granted.

    I've tried with the authToken, but it didn't work. It keeps giving access_denied.
    1342615466090299434-image.png
    1342615466379579552-image.png
  • lucasg-1342615922707529789

    Lucas G

    17 hours ago

    Can you show your headers? You should have an Authorization header in your call
  • pedrocaldo-1342868299553443923

    pedrocaldo

    1hour ago

    When the user get logged, an authtoken is save in cookies, wich is used to call the Auth API from XANO, making sure the user is authenticated. I tried to send this same authtoken with an Authorization header in my call, but didn't worked
    1342868298882351239-image.png
    1342868299213570199-image.png
  • lucasg-1342869333461700670

    Lucas G

    1hour ago

    It’s not structured correctly.
  • lucasg-1342869786907906149

    Lucas G

    58 minutes ago

    Your authorization header should be “Bearer access_token

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.