:lock: How to do Firebase authentication with XState and Svelte
This is example code for my blog posts:
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
Clone and run npm i && npm run dev
To see the complete code for the first article do:
$ git checkout plain-firebase-auth
For more interesting stuff like this follow me on Twitter or check out my blog https://codechips.me