PricingDocsAcademy
Bluesky ...
Wed, Dec 11, 9:56 PM

Login component export

  • /attachments/1275001570118860841/1275087251382210570/chrome_fXyaDLEqkj.png

    Marko

    3 months ago

    Hi there! I’ve created a component for logging users in using a standard email and password form, with Supabase as my backend auth. It works great in toddle, but when I export the component script and place it on my Webflow website, it doesn’t seem to work; error messages from the console below.

    I’m aiming to create my own solution instead of using Memberstack or Outseta so I can have more freedom in how users log in and interact with their profile data. All the authenticated components will be made in toddle. The website is already built in Webflow, and the client is keen to stay with it.
  • Lucas G

    3 months ago

    That's going to take some work/workarounds
  • A login form is easy to set up in toddle as it runs through toddle's servers and handles the cookies/tokens for us in the requests
  • I think you'll have to manage all of that if you want to put it elsewhere
  • Since you won't be able to proxy the call
  • Marko

    3 months ago

    Damn, I figured that was the case. All good, I have an idea to get this sorted. Cheers!
  • Edwin Paul

    2 months ago

    Hey, im facing a similar problem. How did you sort this out?
  • Lucas G

    2 months ago

    Either your login button on a external site redirects to your toddle app and they login there or you handle the session/cookies yourself
    🙌1
  • Marko

    2 months ago

    Yep this is what I did, thanks!
  • Edwin Paul

    2 months ago

    What worked for me was switching from session cookies to local storage.
  • Lucas G

    2 months ago

    That is not a secure approach at all so be mindful that there's no sensitive data behind your login
  • Edwin Paul

    2 months ago

    Thanks for the heads-up!

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.