Help forum

Auth token not being picked up in auth/me in toddle editor

  • Leon Marseglia

    1 year ago

    Anyone else not being able to set session cookie auth token?

    I could yesterday but now it is not working (in the toddle app). On the preview page it seems to work but i need it working in toddle so i can use the data on the api request. I've checked xano and it appears when it calls the auth/me it just provides an empty string. Not sure why?

    Tried uninstalling and reinstalling the toddle chrome extension but still no luck.
    1339171917453594654-Screenshot_2025-02-12_at_09.48.59.png
    1339171917877350521-Screenshot_2025-02-12_at_09.49.22.png
    1339171918254964777-Screenshot_2025-02-12_at_09.50.08.png
    1339171918544113738-Screenshot_2025-02-12_at_09.50.59.png
  • Tod

    1 year ago

    Great energy @Leon Marseglia! Your continuous contribution to the toddle Community just made you advance to Community Level 5!
  • Leon Marseglia

    1 year ago

    Auth token not being picked up in auth/me in toddle editor
  • Filip Dajkovic

    1 year ago

    Are you using Arc, it isn't supported anymore so it could be the issue, also you should check the "Request Headers" field in Xano's Request History Details, as authorization is passed in header of the request.

    Make sure to include the Expires in in auth/login's Set Session Cookies, as Toddle can't receive it from Xano's access key. That was an issue in toddle for a couple of weeks but they should've solved it, you could try to test in on a preview page to see if it's an error with Toddle's editor
  • Leon Marseglia

    1 year ago

    thanks @Filip Dajkovic - it works on preview page just not in toddle editor
  • Leon Marseglia

    1 year ago

    seems to pass the variable name rather than the actual auth token
    1339189666359808060-Screenshot_2025-02-12_at_11.01.16.png
  • Filip Dajkovic

    1 year ago

    You should try and see if the access_token is available as a cooking in your Storage tab in Developers Tools. You should go and complete the login flow, take a look at auth/login API and see the first initials of the access_token you got back, and open Storage in Developer's Tools and see if it's exists there at all
    1339210653499654225-CleanShot_2025-02-12_at_13.22.512x.png
  • Leon Marseglia

    1 year ago

    yeah it does exist that's the weird thing
  • Filip Dajkovic

    1 year ago

    That seems completely the same as the bug in undefined , could you just double check and send us the screenshot of Toddle Extension's version, just to make sure that you have the newest version before we can say that the bug is still not fixed
  • Leon Marseglia

    1 year ago

    1339243661770096755-Screenshot_2025-02-12_at_14.36.05.png
    1339243661493276714-Screenshot_2025-02-12_at_14.35.51.png
  • @Filip Dajkovic it's also greyed out as well i don't know if that is meant to be the case (comparing it to zapier extension)
  • i have all the right permissions in terms of can read and edit toddle site
  • Filip Dajkovic

    1 year ago

    Yeah, everything looks good on your side, it's grayed out because it's not meant to be opened
  • Andreas Møller

    1 year ago

    Hey @Leon Marseglia one final thing, when you open the cookie panel what do you see
    1339246916461920307-CleanShot_2025-02-12_at_15.48.562x.png
  • Andreas Møller

    1 year ago

    This is normal. The token is not avaiblable on the client. It gets inserted on the server.
  • Leon Marseglia

    1 year ago

    1339252608946147432-Screenshot_2025-02-12_at_15.11.36.png
  • Leon Marseglia

    1 year ago

    But in xano it is doing this i mean
  • Andreas Møller

    1 year ago

    Does the API have proxy turned on?
  • Leon Marseglia

    1 year ago

    yeah
  • Andreas Møller

    1 year ago

    That looks like the plugin is working just fine :/
  • can you invite me to the project?
  • my username is andreas
  • If it is a private project they you have to invite me to the org as well. You wont be charged extra 😉
  • Leon Marseglia

    1 year ago

    cool!
  • will do now
  • should have it?
  • it's 'Duvet Flip' project
  • Andreas Møller

    1 year ago

    You need to invite me to that too now that I am in the org
  • Leon Marseglia

    1 year ago

    done
  • you can use:
    andreas@toddle.dev
    password
  • to trigger login
  • zefunha

    1 year ago

    Hey,

    What is the latest on this? Is it a bug?
  • Tod

    1 year ago

    Great energy @! Your continuous contribution to the toddle Community just made you advance to Community Level 5!
  • Lucas G

    1 year ago

    Doesn’t Xano require you set the expiry value since the token is encrypted
  • Andreas Møller

    1 year ago

    It looks like there might be an issue where you have to refresh the browsers after logging in through the editor. Other than that everything seems to work.
  • Lucas G

    1 year ago

    I thought that was always the case? Log in in preview then refresh editor
  • Andreas Møller

    1 year ago

    Yes but it should have been resolved ☹️
  • Leon Marseglia

    1 year ago

    Resolved for me!
  • Andreas Møller

    1 year ago

    Yay!
  • zefunha

    1 year ago

    Hi

    for me the auth me is still not working.

    works in test mode but not in review mode.

    Regards
  • Andreas Møller

    1 year ago

    Can you show me the workflow where you set the session cookie?
  • zefunha

    1 year ago

    Hi,

    This one?
    1340256748845400125-image.png
    1340256749143461981-image.png
    1340256749394989086-image.png
  • RobertG

    1 year ago

    I've had similiar issues, for what it's worth. Reloading the browser seems to work.
  • Andreas Møller

    1 year ago

    Can you share how your workflow looks for setting the cookie?
  • RobertG

    1 year ago

    It's more or less copied off of one of the xano/toddle youtube tutorials. And it works at first, it's just that sometimes you need to reload the page.
    1341780292222062724-toddletemp.png
  • Andreas Møller

    1 year ago

    @RobertG Is this still causing issues with the new plugin?