// browser-auth.el -- El-compiled auth flow using Supabase // // Compile: elc --target=js --bundle examples/browser-auth.el > auth.js // (requires el_runtime.js in the same directory as browser-auth.el) // // Demonstrates: // - extern fn for declaring Supabase client constructor // - anonymous function literals for callbacks // - method call syntax on Any-typed values (client.auth.signInWithOtp) // - try/catch for error handling // - @async functions with DOM interaction // - DOM bridge: dom_get_element, dom_get_value, dom_set_text, dom_add_class // dom_remove_class, dom_show, dom_hide, dom_is_null // - window_set to expose El functions to the browser global scope // - local_storage_set/get for session hints // - set_timeout for transient UI state // - state_set/get for component state // // Expected HTML elements: // #acct-email-input -- email text input // #send-link-btn -- submit button // #auth-message -- status message container // #auth-form -- the form to hide after success // // The Supabase JS SDK is loaded from CDN via a