PricingBlog

supabase todo app

  • iconnectit-1202679224121434173

    Kieran

    1 year ago

    Going mad please help. I have followed the video for about 3 hours for the supabase but still can’t not login. The form seems to be working. I have doubled checked the video api settings and Variables etc. I have tested by adding in another select * api call and turning the supabase auth to anon and that works.


    Any idea for things to check the video is 7 months on so I guess the api setting might have changed on supabase but the docs are crap.
    1202679225459548190-IMG_1629.jpg
  • Tod-1202679229217640479

    Tod

    1 year ago

    Great energy @Kieran! Your continuous contribution to the toddle Community just made you advance to Community Level 1!
  • iconnectit-1202686155078897725

    Kieran

    1 year ago

    1202686154734833764-IMG_1632.jpg
  • Managed to get the auth to work in postman with the ?grant_type=password
  • So I am doing something wrong in toddle for sure ! 😆
  • stockton_f-1202686646026371072

    Stockton

    1 year ago

    What does your workflow look like?

    For the API request in your screenshot, are you storing the access token?
  • You then need to use the "on success" of the store access token node to redirect. That will ensure the access token is stored before leaving the page.
  • stockton_f-1202687286886662205

    Stockton

    1 year ago

  • iconnectit-1202906470551658586

    Kieran

    1 year ago

    Hi Stockton, thanks so much for the video. I can not get a responce from the api to store the return so its the step before saving it to a session cookie. At the end of my video I thought I have had a breakthrough but it did not have the authid avalible to save as it has not passed back yet. Hope that makes sense.
  • stockton_f-1202994285608312892

    Stockton

    1 year ago

    @Kieran try and attaching the submit event listener to the form instead of the button. Right now you have it attached to the button.
  • 1202994336657051668-image.png
  • The button will submit the form but the form emits the submit event.
  • stockton_f-1202995115736436736

    Stockton

    1 year ago

    I believe this is what he shows starting here: https://youtu.be/SHJ3EadcrgY?si=WtUJBor_13GFp4la&t=1133
  • iconnectit-1203035431189352488

    Kieran

    1 year ago

    Amazing I will try on Monday thanks so much I was losing all hope.
  • iconnectit-1204036114483122236

    Kieran

    1 year ago

    Managed to now submit the form but the homepage is not getting the session cookie. I have the plugin installed and I have tried in a new tab to preview. I have then rebuild the whole project to make sure I did not introduce any issues and still no luck - please help. I also have some strange issues with the canvas not refreshing. Why is this so hard!
  • @Stockton Thanks for your help
  • @ Please help me figure this out and I like the platform but if I can not figure out how to do a simple todo app then I will have to pick another platform.
  • Tod-1204036380443807744

    Tod

    1 year ago

    Hey there! No worries, I'm here to help you out. Let's tackle this simple todo app together. What exactly are you having trouble with?
  • iconnectit-1204036647411388466

    Kieran

    1 year ago

    Team toddle Please help me figure this out and I like the platform but if I can not figure out how to do a simple todo app then I will have to pick another platform.
  • Tod-1204036648820670474

    Tod

    1 year ago

    Great energy @Kieran! Your continuous contribution to the toddle Community just made you advance to Community Level 2!
  • erikbeus-1204037966024941649

    Erik Beuschau

    1 year ago

    Hi @Kieran
    Perhaps you could invite me to your project? erik@toddle.dev - I'm happy to have a look.
    Oh, and please DM me some info on which branch/component I should look at and potentially some working login credentials for your back-end 👍
    😀1
  • iconnectit-1204038947244609556

    Kieran

    1 year ago

    Will do thanks Erik
  • iconnectit-1204039303542480956

    Kieran

    1 year ago

    Ignore the first invite please.
    1
  • stockton_f-1204087443318374469

    Stockton

    1 year ago

    @Kieran one thing I've noticed when trying to test APIs in the editor, you sometimes have to give your browser the ole' refresh when it automatically navigates you from one page to another (in your case you were on "login" it redirected you to "homepage" but it looked like you were still on login. Just give it a refresh.

    Also, I'm pretty sure that in order to set the session cookie you have to do the "preview in new tab" instead of testing it in the editor. So click "preview in new tab" then do the login, then go back to the editor and refresh.
    👍2