PricingBlog

Authentication extensions not working?

  • the_sms-1154910193558245466

    the_sms

    2 years ago

    I have a couple screenshots of "cookie failure" in Firefox (downloaded for auth testing since Chrome ext. was having auth issues). For Firefox, the extension shows the toddle.dev and toddle.site being configured.

    For the Chrome examples of cookie failure, the extension only shows toddle.site being configured to allow cookies. Also, the Chrome extension in the toolbar is enabled (shows toddle colors in icon) when I do preview and it is disabled (shows a grey toddle icon in the toolbar) when I am in toddle.dev.

    I can continue to develop/test using the preview, but thought I would share what I am seeing in case others are seeing this or there is something I am doing wrong (most likely). Thanks!
    1154910193835053129-Screenshot_2023-09-22_at_5.21.53_PM.png
    1154910194141233162-Screenshot_2023-09-22_at_4.53.41_PM.png
    1154910194342580304-Screenshot_2023-09-22_at_4.45.21_PM.png
    1154910194594222110-Screenshot_2023-09-22_at_4.44.52_PM.png
    1154910194845876385-Screenshot_2023-09-22_at_4.44.30_PM.png
  • tomthebigtree-1155012210079322122

    Tom Ireland

    2 years ago

    @the_sms - I’m not 100% up on the ins and outs of auth but I do know I was having issues a wee while back.

    Did you install the extension before authenticating for the first time or after? I found I ran into problems with this because I had authenticated my app before setting up the extension, which was conflicting with cookies already set (I think). Solution was to clear all cookies for toddle.site and re-authenticate. Never been a problem after that. Although you do need to authenticate in preview first to be authenticated in the editor I believe. Someone from the toddle crew might have better advice.

    If that’s not it, a wee Loom demo would be good! 👍🏻
  • the_sms-1155154536726532267

    the_sms

    2 years ago

    Thanks Tim! It looks like the preview mode can set/change a cookie and then the test mode can use it but the test mode can’t create/change the cookie. Is that what you see?
  • tomthebigtree-1155175432040226946

    Tom Ireland

    2 years ago

    I think that's right, @the_sms . Don't quote me on that but I know I do have to authenticate via preview for the editor to be authenticated as well. You can still authenticate in the editor but as soon as you refresh it clears that out I think. Alternatively (if you're comfy with it), depending on what data you're working with, you can set up a read-only table temporarily if you just need to test working with the data without having to auth every time. But, if it's dependant on auth or you feel happier doing so, login via preview.
    👍1
  • chieflemon_39702-1265304912456192203

    Chief Lemon

    1 year ago

    Hi @the_sms, I'm new using toddle and I am having exactly the same problem that you had. What was the solution you found? - Thanks in advance for the help. 🙏
  • lucasg-1265313279870238740

    Lucas G

    1 year ago

    The extension works on the preview site, not in the editor
  • Open up a preview, login, then refresh your editor
  • New extension will be coming later on
  • chieflemon_39702-1265319121520820274

    Chief Lemon

    1 year ago

    Thanks mate, all sorted out!