@mierune/sveltekit-firebase-auth-ssr
TypeScript icon, indicating that this package has built-in type declarations

0.0.24 • Public • Published

@mierune/sveltekit-firebase-auth-ssr

NPM Version

[WIP]

A package for integrating Firebase Authentication into SvelteKit, designed specifically for Server-Side Rendering (SSR).

It works not only in Node.js but also on Cloudflare Workers/Pages (MIERUNE/firebase-auth-cloudflare-workers-x509).

Demo: https://sveltekit-firebaseauth-ssr-stripe-demo.pages.dev/

Installation

npm install -D @mierune/sveltekit-firebase-auth-ssr

Usage

  1. Prerequisites:
    • Project ID of the Firebase project
    • API Key of the Firebase project
    • Firebase Service Account Key (from Google Cloud)
  2. Add the necessary code to the following files:
    • src/hooks.client.ts (Example: TODO)
    • src/hooks.server.ts (Example: TODO)
    • src/app.d.ts (Example: TODO)
    • src/routes/+layout.server.ts (Example: TODO)
  3. Implement sign-in and sign-out functionality in your application. (Example: TODO)
  4. Use the user information and implement database integration if needed.
  5. Ensure that the required environment variables are set in the execution environment.

Development

direnv allow
pnpm dev-in-emulator

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.24
15latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.24
15
0.0.23
0
0.0.22
0
0.0.21
0
0.0.20
0
0.0.19
0
0.0.180
0.0.170
0.0.160
0.0.150
0.0.140
0.0.130
0.0.120
0.0.110
0.0.101
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10
0.0.00

Package Sidebar

Install

npm i @mierune/sveltekit-firebase-auth-ssr

Weekly Downloads

15

Version

0.0.24

License

none

Unpacked Size

13.1 kB

Total Files

8

Last publish

Collaborators

  • mierune_iguchi
  • ciscorn