svelte-firebase-auth-xstate-example

Svelte Firebase Auth Xstate Example

Example of how to use XState and Svelte with Firebase authentication

svelte-firebase-auth-xstate-example

:lock: How to do Firebase authentication with XState and Svelte

This is example code for my blog posts:

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

Top categories

Loading Svelte Themes