mirror of
https://github.com/supabase/supabase.git
synced 2026-07-05 06:14:33 +08:00
On firefox, I got:
```
Uncaught TypeError: supabase.auth.user().then is not a function
fetchUserDetails http://192.168.1.230:8080/index.js:62
EventHandlerNonNull* http://192.168.1.230:8080/index.js:18
EventListener.handleEvent* http://192.168.1.230:8080/index.js:10
index.js:62:6
fetchUserDetails http://192.168.1.230:8080/index.js:62
fetchUserDetails self-hosted:1176
(Async: EventHandlerNonNull)
<anonymous> http://192.168.1.230:8080/index.js:18
(Async: EventListener.handleEvent)
<anonymous> http://192.168.1.230:8080/index.js:10
```
My solution might not be the best but it makes it work :)
Please continue showing examples about direct access from javascript client (like Firebase do).
Vanilla-js Auth Example
Live Example: https://auth-vanilla-js.vercel.app/
How to sign up and login using supabase and supabase-js using HTML and JavaScript only
running
npm run dev (requires npx to be installed)
if you want to make changes without restarting the server run this in a different terminal window:
npm run watch