sveltedfire 0.1.20 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export { kindlyFetchDocs } from './sveltedfire/utilities/kindlyFetchDocs.js';
|
|
|
10
10
|
export { type AuthSig } from './sveltedfire/auth/AuthSig.js';
|
|
11
11
|
export { authState } from './sveltedfire/auth/authState.svelte';
|
|
12
12
|
export { handleForm } from './sveltedfire/utilities/handleForm.js';
|
|
13
|
+
export { USER_INVALIDATION_NAME } from './sveltedfire/constants.js';
|
|
13
14
|
import SignedIn from './sveltedfire/components/SignedIn.svelte';
|
|
14
15
|
import SignedOut from './sveltedfire/components/SignedOut.svelte';
|
|
15
16
|
import SveltedAuth from "./sveltedfire/components/SveltedAuth.svelte";
|
package/dist/index.js
CHANGED
|
@@ -11,6 +11,7 @@ export { kindlyFetchDocs } from './sveltedfire/utilities/kindlyFetchDocs.js';
|
|
|
11
11
|
export {} from './sveltedfire/auth/AuthSig.js';
|
|
12
12
|
export { authState } from './sveltedfire/auth/authState.svelte';
|
|
13
13
|
export { handleForm } from './sveltedfire/utilities/handleForm.js';
|
|
14
|
+
export { USER_INVALIDATION_NAME } from './sveltedfire/constants.js';
|
|
14
15
|
import SignedIn from './sveltedfire/components/SignedIn.svelte';
|
|
15
16
|
import SignedOut from './sveltedfire/components/SignedOut.svelte';
|
|
16
17
|
import SveltedAuth from "./sveltedfire/components/SveltedAuth.svelte";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getAuth, type User } from 'firebase/auth'
|
|
3
3
|
import { authState } from '../auth/authState.svelte'
|
|
4
|
+
import { USER_INVALIDATION_NAME } from '../constants.js'
|
|
5
|
+
import { invalidate } from '$app/navigation';
|
|
4
6
|
|
|
5
7
|
const { children, ...rest } = $props()
|
|
6
8
|
|
|
@@ -30,6 +32,7 @@
|
|
|
30
32
|
authState[k] = rest[additionalKeys[k]](user, token)
|
|
31
33
|
})
|
|
32
34
|
})
|
|
35
|
+
invalidate(USER_INVALIDATION_NAME)
|
|
33
36
|
})
|
|
34
37
|
|
|
35
38
|
</script>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const USER_INVALIDATION_NAME = "data:sveltedAuth-user";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const USER_INVALIDATION_NAME = 'data:sveltedAuth-user';
|