Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 946 Bytes

File metadata and controls

35 lines (20 loc) · 946 Bytes

svelte-firebase-auth-xstate-example

🔒 How to do Firebase authentication with XState and Svelte

This is example code for my blog posts:

firebase auth login form

Firebase config

Make sure to put your Firebase API key in the .env file in the root directory.

VITE_FIREBASE_KEY=your-firebase-auth-key

Also change your project name in App.svelte

How to run

Clone and run npm i && npm run dev

To see the complete code for the first article do:

$ git checkout plain-firebase-auth

There is more!

For more interesting stuff like this follow me on Twitter or check out my blog https://codechips.me