Skip to content

Commit

Permalink
re-export * from official firebase/auth
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscorn committed Nov 26, 2024
1 parent ee051d3 commit eae12cf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mierune/sveltekit-firebase-auth-ssr",
"version": "0.0.19",
"version": "0.0.20",
"repository": {
"url": "https://github.com/MIERUNE/sveltekit-firebase-auth-ssr"
},
Expand All @@ -21,9 +21,13 @@
"test:unit": "vitest"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"svelte": "./dist/index.js"
"client": {
"types": "./dist/client.d.ts",
"svelte": "./dist/client.js"
},
"server": {
"types": "./dist/server.d.ts",
"svelte": "./dist/server.js"
}
},
"files": [
Expand Down
3 changes: 3 additions & 0 deletions src/lib/firebase-auth/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import {
import { invalidate } from '$app/navigation';
import { getApp } from 'firebase/app';

/** re-export the official firebase/auth for convenience */
export * from 'firebase/auth';

let redirectResultPromise: Promise<UserCredential | null>;

export function setupAuthClient(options: { emulatorHost?: string }) {
Expand Down
1 change: 1 addition & 0 deletions src/lib/firebase-auth/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
type KeyStorer,
type Credential
} from 'firebase-auth-cloudflare-workers-x509';

import { type Handle, redirect, error, type Cookies } from '@sveltejs/kit';
import { env } from '$env/dynamic/public';

Expand Down

0 comments on commit eae12cf

Please sign in to comment.