https://github.com/codechips/svelte-firebase-auth-xstate-example
Example of how to use XState and Svelte with Firebase authentication
https://github.com/codechips/svelte-firebase-auth-xstate-example
Last synced: about 1 month ago
JSON representation
Example of how to use XState and Svelte with Firebase authentication
- Host: GitHub
- URL: https://github.com/codechips/svelte-firebase-auth-xstate-example
- Owner: codechips
- Created: 2020-07-31T12:42:22.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-31T12:45:36.000Z (almost 5 years ago)
- Last Synced: 2024-11-03T02:32:33.215Z (6 months ago)
- Language: JavaScript
- Size: 79.1 KB
- Stars: 14
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome_xstate - GitHub - code
README
# svelte-firebase-auth-xstate-example
> :lock: How to do Firebase authentication with XState and Svelte
This is example code for my blog posts:
- [Firebase authentication with Svelte](https://codechips.me/firebase-authentication-with-svelte/)
- [Firebase authentication with Svelte and XState](https://codechips.me/firebase-authentication-with-xstate-and-svelte/).
# Firebase config
Make sure to put your Firebase API key in the `.env` file in the root directory.
```bash
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:
```text
$ git checkout plain-firebase-auth
```## There is more!
For more interesting stuff like this follow me on [Twitter](https://twitter.com/codechips) or check out my blog https://codechips.me