{"project":"ttrpgoblin","branch":"main","commit":"5fd60be405073b38b45357cbfd70e287efd207a3","component":{"apis":{"Supabase Login":{"url":{"type":"value","value":"https://ptdvtgmnautlhefdgoyy.supabase.co"},"body":{"type":"object","arguments":[{"Name":0,"name":"email","formula":{"path":["Variables","email"],"type":"path"}},{"Name":0,"name":"password","formula":{"path":["Variables","password"],"type":"path"}}]},"name":"Supabase Login","path":{"0wKGZi9WbZ1I9dQCsdqpH":{"index":1,"formula":{"type":"value","value":"v1"}},"2JzxQY7pHkNPy7j1XD0Ap":{"index":0,"formula":{"type":"value","value":"auth"}},"yLlmG8427gJ4cHMfwpyf0":{"index":2,"formula":{"type":"value","value":"token?grant_type=password"}}},"type":"http","client":{"debounce":null,"parserMode":"auto","onCompleted":{"actions":[{"name":"@toddle/setSessionCookies","label":"Set session cookies","events":{"Error":{"actions":[],"description":"This event is triggered if toddle is unable to set the session cookies"},"Success":{"actions":[],"description":"This event is triggered once the tokens have been saved."}},"arguments":[{"name":"Access token","formula":{"path":["Apis","Supabase Login","data","access_token"],"type":"path"},"description":"Access tokens are the most common way to authenticate with a server"},{"name":"Expires in","type":{"type":"Number"},"formula":{"path":["Apis","Supabase Login","data","expires_in"],"type":"path"},"description":"(Optional) Seconds till the token expires. Defaults to 3600 (1 hour). This should be left blank for JWTs"}]},{"name":"@toddle/gotToURL","label":"Go to URL","arguments":[{"name":"URL","formula":{"type":"switch","cases":[{"formula":{"type":"value","value":"/"},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["URL parameters","redirect"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":null}}],"display_name":"Equals"}}],"default":{"name":"@toddle/decodeURIComponent","type":"function","arguments":[{"name":"EncodedURI","type":{"type":"String"},"formula":{"path":["URL parameters","redirect"],"type":"path"}}],"display_name":"Decode URI Component"}}}]}],"trigger":"Completed"}},"inputs":{},"method":"POST","server":{"ssr":null,"proxy":{"enabled":{"formula":{"type":"value","value":true}}}},"headers":{"Apikey":{"formula":{"type":"value","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InB0ZHZ0Z21uYXV0bGhlZmRnb3l5Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjE3OTg0MjksImV4cCI6MjAzNzM3NDQyOX0.UpYwW6AFXTAZXcablysXh96hORFd2svmJ1hI_5Nm8W4"}},"Content-type":{"formula":{"type":"value","value":"application/json"}}},"version":2,"autoFetch":{"type":"value","value":false},"queryParams":{},"redirectRules":{},"dependsOn":[]}},"name":"Account - Login - Deprecated","nodes":{"root":{"tag":"div","type":"element","children":["zcX5NNrZuI_nEoBhcjo5m"],"classes":{"bNmJjn":{"formula":{"type":"value","value":true}}},"customProperties":{}},"1jicdJJUu7bEF5Y_zapor":{"type":"text","value":{"type":"value","value":"Request a Reset"}},"6AqFjqi10nKPPuc_Y5pYd":{"type":"text","value":{"type":"value","value":"Password"},"condition":{"type":"value","label":null,"value":false}},"Cvz3qdaM-xajf_w0HdquR":{"tag":"label","type":"element","attrs":{"title":{"type":"value","value":"Last name"}},"children":["F4c7UUzf_UiieMsXBjZEg","rjTAfBxBe7fWp8WDsJH8B"],"classes":{"cvzyeh":{"formula":{"type":"value","value":true}}},"customProperties":{}},"CxZDlNugj2jTPjEpot8XV":{"tag":"div","type":"element","children":["Egaei1Q3jhMqmu4Zn7ewp","fjdfDCqVFLb-uc7qAj8uA"],"classes":{"cmaMgB":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Egaei1Q3jhMqmu4Zn7ewp":{"tag":"img","type":"element","attrs":{"alt":{"type":"value","value":""},"src":{"type":"value","value":"/cdn-cgi/imagedelivery/ZIty0Vhmkm0nD-fBKJrTZQ/tutorial_toto_backend:ttrpgoblin_bg_transparent.png/public"}},"classes":{"eGEFGG":{"formula":{"type":"value","value":true}}},"customProperties":{}},"F19NyfrnD2WI0KaT2hOgo":{"type":"text","value":{"path":["Apis","Supabase Login","error","msg"],"type":"path"}},"F4c7UUzf_UiieMsXBjZEg":{"type":"text","value":{"type":"value","value":"Email"},"condition":{"type":"value","label":null,"value":false}},"HCLrVXMJll-jJcM9Nv__V":{"type":"text","value":{"type":"value","value":"Login"}},"NpjoXL-0F33yVEYQpwirF":{"tag":"p","type":"element","children":["UdT0seUvR_60QuFLcCOdt","RkcP89XzykhyD78y8O3PU"],"classes":{"OCMNh":{"formula":{"type":"value","value":true}}},"customProperties":{}},"RkcP89XzykhyD78y8O3PU":{"tag":"a","type":"element","attrs":{"href":{"type":"value","value":"/request-password-reset"},"data-prerender":{"type":"value","value":"moderate"}},"children":["1jicdJJUu7bEF5Y_zapor"],"classes":{"dpmcUT":{"formula":{"type":"value","value":true}}},"customProperties":{}},"UdT0seUvR_60QuFLcCOdt":{"type":"text","value":{"type":"value","value":"Forgot your password?"}},"a3M9YhAfKutR3JD6g5WPA":{"tag":"label","type":"element","attrs":{"title":{"type":"value","value":"Last name"}},"children":["6AqFjqi10nKPPuc_Y5pYd","t4d2CcuuGjKSAWMKVzLCk"],"classes":{"cvzyeh":{"formula":{"type":"value","value":true}}},"customProperties":{}},"bC6e05f3hJWwk8_D_e4sP":{"tag":"a","type":"element","attrs":{"href":{"type":"value","value":"/signup"},"data-prerender":{"type":"value","value":"moderate"}},"children":["rW7U5CAxXq0JoFGb63-wX"],"classes":{"dpmcUT":{"formula":{"type":"value","value":true}}},"customProperties":{}},"bWNlLgwMgX41IDq64xsHO":{"type":"text","value":{"type":"value","value":"Don't have an account?"}},"bnXJjkaQuCFFGthG5zOPk":{"tag":"p","type":"element","children":["F19NyfrnD2WI0KaT2hOgo"],"condition":{"name":"@toddle/not","type":"function","arguments":[{"name":"Input","type":{"type":"Boolean"},"formula":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Apis","Supabase Login","error"],"type":"path","label":null}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":null}}],"display_name":"Equals"}}],"display_name":"Not"},"classes":{"bxteJt":{"formula":{"type":"value","value":true}}},"customProperties":{}},"fjdfDCqVFLb-uc7qAj8uA":{"tag":"h1","type":"element","children":["rAGC9wVY4qf3mZWv_xRql"],"classes":{"eIHswA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"qYiwx6JOS0Z5RePVMh8iE":{"tag":"p","type":"element","children":["bWNlLgwMgX41IDq64xsHO","bC6e05f3hJWwk8_D_e4sP"],"classes":{"OCMNh":{"formula":{"type":"value","value":true}}},"customProperties":{}},"rAGC9wVY4qf3mZWv_xRql":{"type":"text","value":{"type":"value","value":"TTRPGoblin"}},"rW7U5CAxXq0JoFGb63-wX":{"type":"text","value":{"type":"value","value":"Signup here"}},"rjTAfBxBe7fWp8WDsJH8B":{"tag":"input","type":"element","attrs":{"type":{"type":"value","value":"email"},"value":{"path":["Variables","email"],"type":"path"},"placeholder":{"type":"value","value":"email"}},"events":{"input":{"actions":[{"data":{"path":["Event","target","value"],"type":"path"},"type":"SetVariable","variable":"email"}],"trigger":"input"}},"classes":{"fDbsCY":{"formula":{"type":"value","value":true}}},"customProperties":{}},"t4d2CcuuGjKSAWMKVzLCk":{"tag":"input","type":"element","attrs":{"type":{"type":"value","value":"password"},"value":{"path":["Variables","password"],"type":"path"},"placeholder":{"type":"value","value":"Password"}},"events":{"input":{"actions":[{"data":{"path":["Event","target","value"],"type":"path"},"type":"SetVariable","variable":"password"}],"trigger":"input"}},"classes":{"fDbsCY":{"formula":{"type":"value","value":true}}},"customProperties":{}},"tbj9SliTBkIdX2pXrYhsi":{"tag":"button","type":"element","attrs":{"type":{"type":"value","value":"submit"}},"children":["HCLrVXMJll-jJcM9Nv__V"],"classes":{"eNUisD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"zcX5NNrZuI_nEoBhcjo5m":{"tag":"form","type":"element","events":{"submit":{"actions":[{"name":"@toddle/preventDefault"},{"api":"Supabase Login","type":"Fetch","input":{},"inputs":{},"onError":{"actions":[]},"onSuccess":{"actions":[]}}],"trigger":"submit"}},"children":["CxZDlNugj2jTPjEpot8XV","Cvz3qdaM-xajf_w0HdquR","a3M9YhAfKutR3JD6g5WPA","tbj9SliTBkIdX2pXrYhsi","qYiwx6JOS0Z5RePVMh8iE","NpjoXL-0F33yVEYQpwirF","bnXJjkaQuCFFGthG5zOPk"],"classes":{"dtMYxs":{"formula":{"type":"value","value":true}}},"customProperties":{}}},"route":{"path":[{"name":"login-old","type":"static"}],"query":{"redirect":{"name":"redirect"}}},"__type":"components","variables":{"name":{"initialValue":{"type":"value","value":""}},"email":{"initialValue":{"type":"value","value":""}},"password":{"initialValue":{"type":"value","value":""}}}},"components":[]}