@angular/fire 21.0.0-rc.1 → 21.0.1-canary.20261005001317.sha-eee3486
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/README.md +1 -1
- package/docs/ai.md +2 -5
- package/docs/analytics.md +1 -4
- package/docs/app-check.md +1 -4
- package/docs/auth.md +2 -7
- package/docs/data-connect.md +1 -4
- package/docs/database.md +1 -4
- package/docs/firestore.md +1 -4
- package/docs/functions.md +1 -4
- package/docs/install-and-setup.md +13 -7
- package/docs/install-firebase-tools.md +2 -0
- package/docs/messaging.md +1 -4
- package/docs/performance.md +1 -4
- package/docs/remote-config.md +1 -4
- package/docs/storage.md +1 -4
- package/docs/version-21-upgrade.md +6 -5
- package/fesm2022/angular-fire-app-check.mjs +21 -3
- package/fesm2022/angular-fire-app-check.mjs.map +1 -1
- package/fesm2022/angular-fire-auth.mjs +1 -1
- package/fesm2022/angular-fire-auth.mjs.map +1 -1
- package/package.json +1 -1
- package/publish.sh +1 -1
- package/schematics/add/index.js +1 -1
- package/schematics/deploy/actions.js +66 -66
- package/schematics/deploy/builder.js +101 -101
- package/schematics/setup/index.js +121 -121
- package/schematics/update/v7/index.js +1 -1
- package/types/angular-fire-app-check.d.ts +7 -2
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ AngularFire smooths over the rough edges an Angular developer might encounter wh
|
|
|
5
5
|
[Firebase JS SDK](https://github.com/firebase/firebase-js-sdk) & aims to provide a more natural developer experience
|
|
6
6
|
by conforming to Angular conventions.
|
|
7
7
|
|
|
8
|
-
<strong><pre>ng add @angular/fire</pre></strong>
|
|
8
|
+
<strong><pre>ng add @angular/fire@next</pre></strong>
|
|
9
9
|
|
|
10
10
|
- **Dependency injection** - Provide and Inject Firebase services in your components.
|
|
11
11
|
- **Zone.js wrappers** - Stable zones allow proper functionality of service workers, forms, SSR, and pre-rendering.
|
package/docs/ai.md
CHANGED
|
@@ -8,14 +8,11 @@ Firebase AI Logic gives you access to the latest generative AI models from Googl
|
|
|
8
8
|
|
|
9
9
|
[Learn more](https://firebase.google.com/docs/ai-logic)
|
|
10
10
|
|
|
11
|
-
> Firebase AI Logic was previously called **Vertex AI in Firebase**. If you are upgrading from AngularFire 20, the module moved from `@angular/fire/vertexai` to `@angular/fire/ai` and most symbols were renamed (`provideVertexAI` to `provideAI`, `VertexAI` to `AI`). One is not a rename: plain `getAI()` uses the Gemini Developer API backend, so the old `getVertexAI()` maps to `getAI(app, { backend: new AgentPlatformBackend() })`. Running `ng update
|
|
11
|
+
> Firebase AI Logic was previously called **Vertex AI in Firebase**. If you are upgrading from AngularFire 20, the module moved from `@angular/fire/vertexai` to `@angular/fire/ai` and most symbols were renamed (`provideVertexAI` to `provideAI`, `VertexAI` to `AI`). One is not a rename: plain `getAI()` uses the Gemini Developer API backend, so the old `getVertexAI()` maps to `getAI(app, { backend: new AgentPlatformBackend() })`. Running the `ng update` command in the [AngularFire 20 to 21 upgrade guide](./version-21-upgrade.md) rewrites all of this for you and keeps your app on the same backend, though a call that passed no `location` moves from `us-central1` to `global`.
|
|
12
12
|
|
|
13
13
|
## Dependency Injection
|
|
14
14
|
|
|
15
|
-
As a prerequisite, ensure that `AngularFire` has been added to your project
|
|
16
|
-
```bash
|
|
17
|
-
ng add @angular/fire
|
|
18
|
-
```
|
|
15
|
+
As a prerequisite, ensure that `AngularFire` has been added to your project as described in the [Quickstart](./install-and-setup.md).
|
|
19
16
|
|
|
20
17
|
Provide an AI instance in the application's `app.config.ts`:
|
|
21
18
|
|
package/docs/analytics.md
CHANGED
|
@@ -12,10 +12,7 @@ Google Analytics is an app measurement solution, available at no charge, that pr
|
|
|
12
12
|
|
|
13
13
|
## Dependency Injection
|
|
14
14
|
|
|
15
|
-
As a prerequisite, ensure that `AngularFire` has been added to your project
|
|
16
|
-
```bash
|
|
17
|
-
ng add @angular/fire
|
|
18
|
-
```
|
|
15
|
+
As a prerequisite, ensure that `AngularFire` has been added to your project as described in the [Quickstart](./install-and-setup.md).
|
|
19
16
|
|
|
20
17
|
Provide an Analytics instance in the application's `app.config.ts`:
|
|
21
18
|
|
package/docs/app-check.md
CHANGED
|
@@ -12,10 +12,7 @@ App Check helps protect your API resources from abuse by preventing unauthorized
|
|
|
12
12
|
|
|
13
13
|
## Dependency Injection
|
|
14
14
|
|
|
15
|
-
As a prerequisite, ensure that `AngularFire` has been added to your project
|
|
16
|
-
```bash
|
|
17
|
-
ng add @angular/fire
|
|
18
|
-
```
|
|
15
|
+
As a prerequisite, ensure that `AngularFire` has been added to your project as described in the [Quickstart](./install-and-setup.md).
|
|
19
16
|
|
|
20
17
|
Provide an App Check instance in the application's `app.config.ts`:
|
|
21
18
|
|
package/docs/auth.md
CHANGED
|
@@ -15,10 +15,7 @@ Firebase Authentication integrates tightly with other Firebase services, and it
|
|
|
15
15
|
|
|
16
16
|
## Dependency Injection
|
|
17
17
|
|
|
18
|
-
As a prerequisite, ensure that `AngularFire` has been added to your project
|
|
19
|
-
```bash
|
|
20
|
-
ng add @angular/fire
|
|
21
|
-
```
|
|
18
|
+
As a prerequisite, ensure that `AngularFire` has been added to your project as described in the [Quickstart](./install-and-setup.md).
|
|
22
19
|
|
|
23
20
|
Provide an Auth instance in the application's `app.config.ts`:
|
|
24
21
|
|
|
@@ -156,9 +153,7 @@ If you need a session the browser cannot read, use Firebase's [session cookies](
|
|
|
156
153
|
|
|
157
154
|
#### `beforeAuthStateChanged` from `firebase/auth`
|
|
158
155
|
|
|
159
|
-
One import in the code above is deliberately different from the rest of this guide. `beforeAuthStateChanged` comes from `firebase/auth` rather than `@angular/fire/auth`. AngularFire's version keeps the app marked as busy until its callback first runs, and this callback only runs when someone signs in or out.
|
|
160
|
-
|
|
161
|
-
Importing it from `@angular/fire/auth` makes `ng build` hang during route extraction and fail with a timeout. That is a bug on our side, tracked in [#3748](https://github.com/angular/angularfire/issues/3748). Once the fix lands, this can be imported from `@angular/fire/auth` like everything else.
|
|
156
|
+
One import in the code above is deliberately different from the rest of this guide. `beforeAuthStateChanged` comes from `firebase/auth` rather than `@angular/fire/auth`. In AngularFire 21.0.0-rc.1 and earlier, AngularFire's version keeps the app marked as busy until its callback first runs, and this callback only runs when someone signs in or out ([#3748](https://github.com/angular/angularfire/issues/3748)).
|
|
162
157
|
|
|
163
158
|
### 3. Pass the cookie into the render
|
|
164
159
|
|
package/docs/data-connect.md
CHANGED
|
@@ -10,10 +10,7 @@ Firebase Data Connect (now known as "Firebase SQL Connect" in the Firebase docum
|
|
|
10
10
|
|
|
11
11
|
## Dependency Injection
|
|
12
12
|
|
|
13
|
-
As a prerequisite, ensure that `AngularFire` has been added to your project
|
|
14
|
-
```bash
|
|
15
|
-
ng add @angular/fire
|
|
16
|
-
```
|
|
13
|
+
As a prerequisite, ensure that `AngularFire` has been added to your project as described in the [Quickstart](./install-and-setup.md).
|
|
17
14
|
|
|
18
15
|
Provide a Data Connect instance in the application's `app.config.ts`. `getDataConnect` takes a connector config that identifies your service, connector, and location; this is generated for you when you set up Data Connect and is also exported from your generated SDK:
|
|
19
16
|
|
package/docs/database.md
CHANGED
|
@@ -12,10 +12,7 @@ The Firebase Realtime Database is a cloud-hosted database. Data is stored as JSO
|
|
|
12
12
|
|
|
13
13
|
## Dependency Injection
|
|
14
14
|
|
|
15
|
-
As a prerequisite, ensure that `AngularFire` has been added to your project
|
|
16
|
-
```bash
|
|
17
|
-
ng add @angular/fire
|
|
18
|
-
```
|
|
15
|
+
As a prerequisite, ensure that `AngularFire` has been added to your project as described in the [Quickstart](./install-and-setup.md).
|
|
19
16
|
|
|
20
17
|
Provide a Database instance in the application's `app.config.ts`:
|
|
21
18
|
|
package/docs/firestore.md
CHANGED
|
@@ -14,10 +14,7 @@ Cloud Firestore is the API that gives your application access to your database i
|
|
|
14
14
|
|
|
15
15
|
## Dependency Injection
|
|
16
16
|
|
|
17
|
-
As a prerequisite, ensure that `AngularFire` has been added to your project
|
|
18
|
-
```bash
|
|
19
|
-
ng add @angular/fire
|
|
20
|
-
```
|
|
17
|
+
As a prerequisite, ensure that `AngularFire` has been added to your project as described in the [Quickstart](./install-and-setup.md).
|
|
21
18
|
Provide a Firestore instance in the application's `app.config.ts`:
|
|
22
19
|
|
|
23
20
|
```ts
|
package/docs/functions.md
CHANGED
|
@@ -12,10 +12,7 @@ The Cloud Functions for Firebase client SDKs let you call functions directly fro
|
|
|
12
12
|
|
|
13
13
|
## Dependency Injection
|
|
14
14
|
|
|
15
|
-
As a prerequisite, ensure that `AngularFire` has been added to your project
|
|
16
|
-
```bash
|
|
17
|
-
ng add @angular/fire
|
|
18
|
-
```
|
|
15
|
+
As a prerequisite, ensure that `AngularFire` has been added to your project as described in the [Quickstart](./install-and-setup.md).
|
|
19
16
|
|
|
20
17
|
Provide a Cloud Functions instance in the application's `app.config.ts`:
|
|
21
18
|
|
|
@@ -2,39 +2,45 @@
|
|
|
2
2
|
|
|
3
3
|
## Before you begin
|
|
4
4
|
|
|
5
|
-
- **Firebase CLI
|
|
6
|
-
-
|
|
5
|
+
- **Firebase CLI**
|
|
6
|
+
- Setup uses the Firebase CLI (`firebase-tools`). Install it with `npm install -g firebase-tools`, then run `firebase login`. If `ng add` can't find a copy, it installs the newest version for you.
|
|
7
|
+
- Run `ng add` yourself, not through an AI agent.
|
|
8
|
+
- In AngularFire 21.0.0-rc.1 and earlier, `ng add` run by an agent with firebase-tools 15.26 or later stops after you choose features, with `Cannot read properties of undefined (reading 'email')`.
|
|
9
|
+
- If it already stopped, run `ng add @angular/fire@next` again yourself. The stopped run leaves only an empty `firebase.json`, which the second run reuses.
|
|
10
|
+
- A copy older than 14 stops setup with `firebase-tools version 14.0.0+ is required, please upgrade and run again`, and `ng add` does not upgrade a copy you already have.
|
|
7
11
|
- **Harmless CLI noise.** The Firebase CLI may print a `punycode` deprecation warning or ask about enabling extra features (for example Gemini) during setup. These come from the CLI, not from AngularFire, and are safe to ignore.
|
|
8
12
|
|
|
9
13
|
### 1. Create a new project
|
|
10
14
|
|
|
11
15
|
```bash
|
|
12
16
|
# Using yarn create
|
|
13
|
-
yarn create @angular <project-name>
|
|
17
|
+
yarn create @angular@21 <project-name>
|
|
14
18
|
cd <project-name>
|
|
15
19
|
```
|
|
16
20
|
or
|
|
17
21
|
|
|
18
22
|
```bash
|
|
19
23
|
# Using npm create
|
|
20
|
-
npm create @angular <project-name>
|
|
24
|
+
npm create @angular@21 <project-name>
|
|
21
25
|
cd <project-name>
|
|
22
26
|
```
|
|
23
27
|
|
|
24
28
|
optionally installing the tooling directly:
|
|
25
29
|
```bash
|
|
26
30
|
# Installing the tooling directly
|
|
27
|
-
npm install -g @angular/cli
|
|
31
|
+
npm install -g @angular/cli@21
|
|
28
32
|
ng new <project-name>
|
|
29
33
|
cd <project-name>
|
|
30
34
|
```
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
These commands set up an Angular 21 project, the version AngularFire 21 supports.
|
|
33
37
|
|
|
34
38
|
### 2. Install AngularFire and Firebase
|
|
35
39
|
|
|
40
|
+
AngularFire 21 is currently a release candidate, published under the `next` tag:
|
|
41
|
+
|
|
36
42
|
```bash
|
|
37
|
-
ng add @angular/fire
|
|
43
|
+
ng add @angular/fire@next
|
|
38
44
|
```
|
|
39
45
|
|
|
40
46
|
This installs AngularFire and configures your project. `ng add` will:
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Firebase Tools Install and Setup
|
|
2
2
|
|
|
3
|
+
> Setting up AngularFire? Run `ng add @angular/fire` yourself, not through an AI agent. In AngularFire 21.0.0-rc.1 and earlier, `ng add` run by an agent with firebase-tools 15.26 or later stops after you choose AngularFire features, with `Cannot read properties of undefined (reading 'email')`.
|
|
4
|
+
|
|
3
5
|
### 1. Install package
|
|
4
6
|
|
|
5
7
|
```bash
|
package/docs/messaging.md
CHANGED
|
@@ -10,10 +10,7 @@ Firebase Cloud Messaging (FCM) allows you to register devices with unique FCM to
|
|
|
10
10
|
|
|
11
11
|
## Dependency Injection
|
|
12
12
|
|
|
13
|
-
As a prerequisite, ensure that `AngularFire` has been added to your project
|
|
14
|
-
```bash
|
|
15
|
-
ng add @angular/fire
|
|
16
|
-
```
|
|
13
|
+
As a prerequisite, ensure that `AngularFire` has been added to your project as described in the [Quickstart](./install-and-setup.md).
|
|
17
14
|
|
|
18
15
|
Provide a Cloud Messaging instance in the application's `app.config.ts`:
|
|
19
16
|
|
package/docs/performance.md
CHANGED
|
@@ -12,10 +12,7 @@ Firebase Performance Monitoring is a service that helps you to gain insight into
|
|
|
12
12
|
|
|
13
13
|
## Dependency Injection
|
|
14
14
|
|
|
15
|
-
As a prerequisite, ensure that `AngularFire` has been added to your project
|
|
16
|
-
```bash
|
|
17
|
-
ng add @angular/fire
|
|
18
|
-
```
|
|
15
|
+
As a prerequisite, ensure that `AngularFire` has been added to your project as described in the [Quickstart](./install-and-setup.md).
|
|
19
16
|
|
|
20
17
|
Provide a Performance instance in the application's `app.config.ts`:
|
|
21
18
|
|
package/docs/remote-config.md
CHANGED
|
@@ -12,10 +12,7 @@ Firebase Remote Config is a cloud service that lets you change the behavior and
|
|
|
12
12
|
|
|
13
13
|
## Dependency Injection
|
|
14
14
|
|
|
15
|
-
As a prerequisite, ensure that `AngularFire` has been added to your project
|
|
16
|
-
```bash
|
|
17
|
-
ng add @angular/fire
|
|
18
|
-
```
|
|
15
|
+
As a prerequisite, ensure that `AngularFire` has been added to your project as described in the [Quickstart](./install-and-setup.md).
|
|
19
16
|
|
|
20
17
|
Provide a Remote Config instance in the application's `app.config.ts`:
|
|
21
18
|
|
package/docs/storage.md
CHANGED
|
@@ -14,10 +14,7 @@ Cloud Storage allows developers to upload and share user generated content such
|
|
|
14
14
|
|
|
15
15
|
AngularFire allows you to work with Firebase Storage via Angular's Dependency Injection.
|
|
16
16
|
|
|
17
|
-
As a prerequisite, ensure that `AngularFire` has been added to your project
|
|
18
|
-
```bash
|
|
19
|
-
ng add @angular/fire
|
|
20
|
-
```
|
|
17
|
+
As a prerequisite, ensure that `AngularFire` has been added to your project as described in the [Quickstart](./install-and-setup.md).
|
|
21
18
|
|
|
22
19
|
Provide a Cloud Storage instance in the application's `app.config.ts`:
|
|
23
20
|
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
# Upgrading to AngularFire 21
|
|
1
|
+
# Upgrading to the AngularFire 21 Release Candidate
|
|
2
2
|
|
|
3
3
|
AngularFire 21 targets **Angular 21** and the **Firebase JS SDK v12**. Most of the upgrade is handled for you by `ng update`.
|
|
4
4
|
|
|
5
5
|
## Run the update
|
|
6
6
|
|
|
7
|
+
The release candidate is published under the `next` tag. From an app on Angular 20 and AngularFire 20, run:
|
|
8
|
+
|
|
7
9
|
```bash
|
|
8
|
-
ng update @angular/core @angular/cli
|
|
9
|
-
ng update @angular/fire # then AngularFire 21
|
|
10
|
+
ng update @angular/core@21 @angular/cli@21 @angular/fire@next
|
|
10
11
|
```
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
The AngularFire update runs a migration that:
|
|
13
14
|
|
|
14
15
|
- **Aligns your `firebase` dependency to `^12.18.0`.** AngularFire 21 requires Firebase JS SDK 12, at 12.18 or later. If your app requested an older `firebase`, whether that is 11 or an earlier 12, npm would install both that copy and the one AngularFire needs side by side, and the two copies reject each other's objects at runtime. The migration updates the dependency and reinstalls so you end up with a single copy. Verify with `npm ls firebase`.
|
|
15
16
|
- **Rewrites Vertex AI imports to AI Logic** (see below).
|
|
@@ -55,7 +56,7 @@ Firebase does not support the `global` location for the Live API models, so `get
|
|
|
55
56
|
|
|
56
57
|
### What the migration rewrites for you
|
|
57
58
|
|
|
58
|
-
|
|
59
|
+
The AngularFire update rewrites these imports and identifiers for you and logs every `getVertexAI` call it rewrites. `getGenerativeModel` keeps its name.
|
|
59
60
|
|
|
60
61
|
Imports straight from the Firebase SDK (`firebase/vertexai`, gone in SDK 12) are rewritten to `firebase/ai` under the same rules. The rewrite parses your sources with the `typescript` package (an optional peer dependency of `@angular/fire`). Every Angular workspace already has it, but if the migration warns that it could not be resolved, install `typescript` and re-run. See [ai.md](./ai.md) for current usage.
|
|
61
62
|
|
|
@@ -23,15 +23,33 @@ class AppCheckInstances {
|
|
|
23
23
|
const appCheckInstance$ = timer(0, 300).pipe(concatMap(() => from(_getAllInstancesOf(APP_CHECK_PROVIDER_NAME))), distinct());
|
|
24
24
|
|
|
25
25
|
const PROVIDED_APP_CHECK_INSTANCES = new InjectionToken('angularfire2.app-check-instances');
|
|
26
|
+
/**
|
|
27
|
+
* Set to `true` in a server-only config to run `provideAppCheck` during server rendering.
|
|
28
|
+
* By default App Check is skipped there, and `AppCheck` injects as `null`.
|
|
29
|
+
*/
|
|
30
|
+
const APP_CHECK_ON_SERVER = new InjectionToken('angularfire2.app-check-on-server', {
|
|
31
|
+
providedIn: 'root',
|
|
32
|
+
factory: () => false,
|
|
33
|
+
});
|
|
26
34
|
function defaultAppCheckInstanceFactory(provided, defaultApp) {
|
|
27
|
-
|
|
35
|
+
// A skipped server render leaves an undefined entry, which ɵgetDefaultInstanceOf cannot read.
|
|
36
|
+
const providedAppChecks = provided?.filter((appCheck) => !!appCheck);
|
|
37
|
+
const defaultAppCheck = _getDefaultInstanceOf(APP_CHECK_PROVIDER_NAME, providedAppChecks, defaultApp);
|
|
28
38
|
return defaultAppCheck && new AppCheck(defaultAppCheck);
|
|
29
39
|
}
|
|
30
40
|
const LOCALHOSTS = ['localhost', '0.0.0.0', '127.0.0.1'];
|
|
31
41
|
const isLocalhost = typeof window !== 'undefined' && LOCALHOSTS.includes(window.location.hostname);
|
|
42
|
+
let warnedServerSkip = false;
|
|
32
43
|
function appCheckInstanceFactory(fn) {
|
|
33
44
|
return (zone, injector, platformId) => {
|
|
34
|
-
|
|
45
|
+
if (isPlatformServer(platformId) && !injector.get(APP_CHECK_ON_SERVER)) {
|
|
46
|
+
if (isDevMode() && !warnedServerSkip) {
|
|
47
|
+
warnedServerSkip = true;
|
|
48
|
+
console.warn("AngularFire skips App Check during server rendering, so server-side Firebase requests carry no App Check token. To run App Check there, provide APP_CHECK_ON_SERVER as true in your server config. Find more at https://github.com/angular/angularfire/blob/main/docs/app-check.md");
|
|
49
|
+
}
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
// Browser dev mode and localhost use the debug token
|
|
35
53
|
if (!isPlatformServer(platformId) && (isDevMode() || isLocalhost)) {
|
|
36
54
|
globalThis.FIREBASE_APPCHECK_DEBUG_TOKEN ??= true;
|
|
37
55
|
}
|
|
@@ -106,5 +124,5 @@ const setTokenAutoRefreshEnabled = _zoneWrap(setTokenAutoRefreshEnabled$1, true)
|
|
|
106
124
|
* Generated bundle index. Do not edit.
|
|
107
125
|
*/
|
|
108
126
|
|
|
109
|
-
export { AppCheck, AppCheckInstances, AppCheckModule, appCheckInstance$, getLimitedUseToken, getToken, initializeAppCheck, onTokenChanged, provideAppCheck, setTokenAutoRefreshEnabled };
|
|
127
|
+
export { APP_CHECK_ON_SERVER, AppCheck, AppCheckInstances, AppCheckModule, appCheckInstance$, getLimitedUseToken, getToken, initializeAppCheck, onTokenChanged, provideAppCheck, setTokenAutoRefreshEnabled };
|
|
110
128
|
//# sourceMappingURL=angular-fire-app-check.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular-fire-app-check.mjs","sources":["../../../src/app-check/app-check.ts","../../../src/app-check/app-check.module.ts","../../../src/app-check/firebase.ts","../../../src/app-check/angular-fire-app-check.ts"],"sourcesContent":["import { ɵgetAllInstancesOf } from '@angular/fire';\nimport { AppCheck as FirebaseAppCheck } from 'firebase/app-check';\nimport { from, timer } from 'rxjs';\nimport { concatMap, distinct } from 'rxjs/operators';\n\nexport const APP_CHECK_PROVIDER_NAME = 'app-check';\n\n// see notes in core/firebase.app.module.ts for why we're building the class like this\n \nexport interface AppCheck extends FirebaseAppCheck {}\n\nexport class AppCheck {\n constructor(appCheck: FirebaseAppCheck) {\n return appCheck;\n }\n}\n\n \nexport interface AppCheckInstances extends Array<AppCheck> {}\n\nexport class AppCheckInstances {\n constructor() {\n return ɵgetAllInstancesOf<AppCheck>(APP_CHECK_PROVIDER_NAME);\n }\n}\n\nexport const appCheckInstance$ = timer(0, 300).pipe(\n concatMap(() => from(ɵgetAllInstancesOf<FirebaseAppCheck>(APP_CHECK_PROVIDER_NAME))),\n distinct(),\n);\n","import { isPlatformServer } from '@angular/common';\nimport {\n EnvironmentProviders,\n InjectionToken,\n Injector,\n NgModule,\n NgZone,\n Optional,\n PLATFORM_ID,\n isDevMode,\n makeEnvironmentProviders,\n} from '@angular/core';\nimport { VERSION, ɵAngularFireSchedulers, ɵgetDefaultInstanceOf } from '@angular/fire';\nimport { FirebaseApp, FirebaseApps } from '@angular/fire/app';\nimport { registerVersion } from 'firebase/app';\nimport { AppCheck as FirebaseAppCheck } from 'firebase/app-check';\nimport { APP_CHECK_PROVIDER_NAME, AppCheck, AppCheckInstances } from './app-check';\n\nexport const PROVIDED_APP_CHECK_INSTANCES = new InjectionToken<AppCheck[]>('angularfire2.app-check-instances');\n\nexport function defaultAppCheckInstanceFactory(provided: FirebaseAppCheck[]|undefined, defaultApp: FirebaseApp) {\n const defaultAppCheck = ɵgetDefaultInstanceOf<FirebaseAppCheck>(APP_CHECK_PROVIDER_NAME,
|
|
1
|
+
{"version":3,"file":"angular-fire-app-check.mjs","sources":["../../../src/app-check/app-check.ts","../../../src/app-check/app-check.module.ts","../../../src/app-check/firebase.ts","../../../src/app-check/angular-fire-app-check.ts"],"sourcesContent":["import { ɵgetAllInstancesOf } from '@angular/fire';\nimport { AppCheck as FirebaseAppCheck } from 'firebase/app-check';\nimport { from, timer } from 'rxjs';\nimport { concatMap, distinct } from 'rxjs/operators';\n\nexport const APP_CHECK_PROVIDER_NAME = 'app-check';\n\n// see notes in core/firebase.app.module.ts for why we're building the class like this\n \nexport interface AppCheck extends FirebaseAppCheck {}\n\nexport class AppCheck {\n constructor(appCheck: FirebaseAppCheck) {\n return appCheck;\n }\n}\n\n \nexport interface AppCheckInstances extends Array<AppCheck> {}\n\nexport class AppCheckInstances {\n constructor() {\n return ɵgetAllInstancesOf<AppCheck>(APP_CHECK_PROVIDER_NAME);\n }\n}\n\nexport const appCheckInstance$ = timer(0, 300).pipe(\n concatMap(() => from(ɵgetAllInstancesOf<FirebaseAppCheck>(APP_CHECK_PROVIDER_NAME))),\n distinct(),\n);\n","import { isPlatformServer } from '@angular/common';\nimport {\n EnvironmentProviders,\n InjectionToken,\n Injector,\n NgModule,\n NgZone,\n Optional,\n PLATFORM_ID,\n isDevMode,\n makeEnvironmentProviders,\n} from '@angular/core';\nimport { VERSION, ɵAngularFireSchedulers, ɵgetDefaultInstanceOf } from '@angular/fire';\nimport { FirebaseApp, FirebaseApps } from '@angular/fire/app';\nimport { registerVersion } from 'firebase/app';\nimport { AppCheck as FirebaseAppCheck } from 'firebase/app-check';\nimport { APP_CHECK_PROVIDER_NAME, AppCheck, AppCheckInstances } from './app-check';\n\nexport const PROVIDED_APP_CHECK_INSTANCES = new InjectionToken<(AppCheck|undefined)[]>('angularfire2.app-check-instances');\n\n/**\n * Set to `true` in a server-only config to run `provideAppCheck` during server rendering.\n * By default App Check is skipped there, and `AppCheck` injects as `null`.\n */\nexport const APP_CHECK_ON_SERVER = new InjectionToken<boolean>('angularfire2.app-check-on-server', {\n providedIn: 'root',\n factory: () => false,\n});\n\nexport function defaultAppCheckInstanceFactory(provided: (FirebaseAppCheck|undefined)[]|undefined, defaultApp: FirebaseApp) {\n // A skipped server render leaves an undefined entry, which ɵgetDefaultInstanceOf cannot read.\n const providedAppChecks = provided?.filter((appCheck): appCheck is FirebaseAppCheck => !!appCheck);\n const defaultAppCheck = ɵgetDefaultInstanceOf<FirebaseAppCheck>(APP_CHECK_PROVIDER_NAME, providedAppChecks, defaultApp);\n return defaultAppCheck && new AppCheck(defaultAppCheck);\n}\n\nconst LOCALHOSTS = ['localhost', '0.0.0.0', '127.0.0.1'];\nconst isLocalhost = typeof window !== 'undefined' && LOCALHOSTS.includes(window.location.hostname);\n\nlet warnedServerSkip = false;\n\nexport function appCheckInstanceFactory(fn: (injector: Injector) => FirebaseAppCheck) {\n return (zone: NgZone, injector: Injector, platformId: unknown) => {\n if (isPlatformServer(platformId) && !injector.get(APP_CHECK_ON_SERVER)) {\n if (isDevMode() && !warnedServerSkip) {\n warnedServerSkip = true;\n console.warn(\"AngularFire skips App Check during server rendering, so server-side Firebase requests carry no App Check token. To run App Check there, provide APP_CHECK_ON_SERVER as true in your server config. Find more at https://github.com/angular/angularfire/blob/main/docs/app-check.md\");\n }\n return undefined;\n }\n // Browser dev mode and localhost use the debug token\n if (!isPlatformServer(platformId) && (isDevMode() || isLocalhost)) {\n globalThis.FIREBASE_APPCHECK_DEBUG_TOKEN ??= true;\n }\n const appCheck = zone.runOutsideAngular(() => fn(injector));\n return new AppCheck(appCheck);\n };\n}\n\nconst APP_CHECK_INSTANCES_PROVIDER = {\n provide: AppCheckInstances,\n deps: [\n [new Optional(), PROVIDED_APP_CHECK_INSTANCES ],\n ]\n};\n\nconst DEFAULT_APP_CHECK_INSTANCE_PROVIDER = {\n provide: AppCheck,\n useFactory: defaultAppCheckInstanceFactory,\n deps: [\n [new Optional(), PROVIDED_APP_CHECK_INSTANCES ],\n FirebaseApp,\n PLATFORM_ID,\n ]\n};\n\n@NgModule({\n providers: [\n DEFAULT_APP_CHECK_INSTANCE_PROVIDER,\n APP_CHECK_INSTANCES_PROVIDER,\n ]\n})\nexport class AppCheckModule {\n constructor() {\n registerVersion('angularfire', VERSION.full, 'app-check');\n }\n}\n\nexport function provideAppCheck(fn: (injector: Injector) => FirebaseAppCheck, ...deps: any[]): EnvironmentProviders {\n registerVersion('angularfire', VERSION.full, 'app-check');\n return makeEnvironmentProviders([\n DEFAULT_APP_CHECK_INSTANCE_PROVIDER,\n APP_CHECK_INSTANCES_PROVIDER,\n {\n provide: PROVIDED_APP_CHECK_INSTANCES,\n useFactory: appCheckInstanceFactory(fn),\n multi: true,\n deps: [\n NgZone,\n Injector,\n PLATFORM_ID,\n ɵAngularFireSchedulers,\n FirebaseApps,\n ...deps,\n ]\n }\n ]);\n}\n","// DO NOT MODIFY, this file is autogenerated by tools/build.ts\nexport * from 'firebase/app-check';\nimport { ɵzoneWrap } from '@angular/fire';\nimport {\n getLimitedUseToken as _getLimitedUseToken,\n getToken as _getToken,\n initializeAppCheck as _initializeAppCheck,\n onTokenChanged as _onTokenChanged,\n setTokenAutoRefreshEnabled as _setTokenAutoRefreshEnabled\n} from 'firebase/app-check';\n\nexport const getLimitedUseToken = ɵzoneWrap(_getLimitedUseToken, true, 2);\nexport const getToken = ɵzoneWrap(_getToken, true);\nexport const initializeAppCheck = ɵzoneWrap(_initializeAppCheck, true);\nexport const onTokenChanged = ɵzoneWrap(_onTokenChanged, true);\nexport const setTokenAutoRefreshEnabled = ɵzoneWrap(_setTokenAutoRefreshEnabled, true);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["ɵgetAllInstancesOf","ɵgetDefaultInstanceOf","ɵAngularFireSchedulers","ɵzoneWrap","_getLimitedUseToken","_getToken","_initializeAppCheck","_onTokenChanged","_setTokenAutoRefreshEnabled"],"mappings":";;;;;;;;;;;AAKO,MAAM,uBAAuB,GAAG,WAAW;MAMrC,QAAQ,CAAA;AACnB,IAAA,WAAA,CAAY,QAA0B,EAAA;AACpC,QAAA,OAAO,QAAQ;IACjB;AACD;MAKY,iBAAiB,CAAA;AAC5B,IAAA,WAAA,GAAA;AACE,QAAA,OAAOA,kBAAkB,CAAW,uBAAuB,CAAC;IAC9D;AACD;AAEM,MAAM,iBAAiB,GAAG,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CACjD,SAAS,CAAC,MAAM,IAAI,CAACA,kBAAkB,CAAmB,uBAAuB,CAAC,CAAC,CAAC,EACpF,QAAQ,EAAE;;ACVL,MAAM,4BAA4B,GAAG,IAAI,cAAc,CAAyB,kCAAkC,CAAC;AAE1H;;;AAGG;MACU,mBAAmB,GAAG,IAAI,cAAc,CAAU,kCAAkC,EAAE;AACjG,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE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,uBAAuB,CAAC,EAAE,CAAC;AACvC,YAAA,KAAK,EAAE,IAAI;AACX,YAAA,IAAI,EAAE;gBACJ,MAAM;gBACN,QAAQ;gBACR,WAAW;gBACXC,sBAAsB;gBACtB,YAAY;AACZ,gBAAA,GAAG,IAAI;AACR;AACF;AACF,KAAA,CAAC;AACJ;;AC3GA;AAWO,MAAM,kBAAkB,GAAGC,SAAS,CAACC,oBAAmB,EAAE,IAAI,EAAE,CAAC;AACjE,MAAM,QAAQ,GAAGD,SAAS,CAACE,UAAS,EAAE,IAAI;AAC1C,MAAM,kBAAkB,GAAGF,SAAS,CAACG,oBAAmB,EAAE,IAAI;AAC9D,MAAM,cAAc,GAAGH,SAAS,CAACI,gBAAe,EAAE,IAAI;AACtD,MAAM,0BAA0B,GAAGJ,SAAS,CAACK,4BAA2B,EAAE,IAAI;;ACfrF;;AAEG;;"}
|
|
@@ -96,7 +96,7 @@ const user = _zoneWrap(user$1, true);
|
|
|
96
96
|
|
|
97
97
|
// DO NOT MODIFY, this file is autogenerated by tools/build.ts
|
|
98
98
|
const applyActionCode = _zoneWrap(applyActionCode$1, true);
|
|
99
|
-
const beforeAuthStateChanged = _zoneWrap(beforeAuthStateChanged$1,
|
|
99
|
+
const beforeAuthStateChanged = _zoneWrap(beforeAuthStateChanged$1, false);
|
|
100
100
|
const checkActionCode = _zoneWrap(checkActionCode$1, true);
|
|
101
101
|
const confirmPasswordReset = _zoneWrap(confirmPasswordReset$1, true, 2);
|
|
102
102
|
const connectAuthEmulator = _zoneWrap(connectAuthEmulator$1, true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular-fire-auth.mjs","sources":["../../../src/auth/auth.ts","../../../src/auth/auth.module.ts","../../../src/auth/rxfire.ts","../../../src/auth/firebase.ts","../../../src/auth/angular-fire-auth.ts"],"sourcesContent":["import { ɵgetAllInstancesOf } from '@angular/fire';\nimport { Auth as FirebaseAuth } from 'firebase/auth';\nimport { from, timer } from 'rxjs';\nimport { concatMap, distinct } from 'rxjs/operators';\n\nexport const AUTH_PROVIDER_NAME = 'auth';\n\n// see notes in core/firebase.app.module.ts for why we're building the class like this\n \nexport interface Auth extends FirebaseAuth {}\n\nexport class Auth {\n constructor(auth: FirebaseAuth) {\n return auth;\n }\n}\n\n \nexport interface AuthInstances extends Array<FirebaseAuth> {}\n\nexport class AuthInstances {\n constructor() {\n return ɵgetAllInstancesOf<FirebaseAuth>(AUTH_PROVIDER_NAME);\n }\n}\n\nexport const authInstance$ = timer(0, 300).pipe(\n concatMap(() => from(ɵgetAllInstancesOf<FirebaseAuth>(AUTH_PROVIDER_NAME))),\n distinct(),\n);\n","import {\n EnvironmentProviders,\n InjectionToken,\n Injector,\n NgModule,\n NgZone,\n Optional,\n makeEnvironmentProviders,\n} from '@angular/core';\nimport { VERSION, ɵAngularFireSchedulers, ɵgetDefaultInstanceOf } from '@angular/fire';\nimport { FirebaseApp, FirebaseApps } from '@angular/fire/app';\nimport { AppCheckInstances } from '@angular/fire/app-check';\nimport { registerVersion } from 'firebase/app';\nimport { Auth as FirebaseAuth } from 'firebase/auth';\nimport { AUTH_PROVIDER_NAME, Auth, AuthInstances } from './auth';\n\nexport const PROVIDED_AUTH_INSTANCES = new InjectionToken<Auth[]>('angularfire2.auth-instances');\n\nexport function defaultAuthInstanceFactory(provided: FirebaseAuth[]|undefined, defaultApp: FirebaseApp) {\n const defaultAuth = ɵgetDefaultInstanceOf<FirebaseAuth>(AUTH_PROVIDER_NAME, provided, defaultApp);\n return defaultAuth && new Auth(defaultAuth);\n}\n\nexport function authInstanceFactory(fn: (injector: Injector) => FirebaseAuth) {\n return (zone: NgZone, injector: Injector) => {\n const auth = zone.runOutsideAngular(() => fn(injector));\n return new Auth(auth);\n };\n}\n\nconst AUTH_INSTANCES_PROVIDER = {\n provide: AuthInstances,\n deps: [\n [new Optional(), PROVIDED_AUTH_INSTANCES ],\n ]\n};\n\nconst DEFAULT_AUTH_INSTANCE_PROVIDER = {\n provide: Auth,\n useFactory: defaultAuthInstanceFactory,\n deps: [\n [new Optional(), PROVIDED_AUTH_INSTANCES ],\n FirebaseApp,\n ]\n};\n\n@NgModule({\n providers: [\n DEFAULT_AUTH_INSTANCE_PROVIDER,\n AUTH_INSTANCES_PROVIDER,\n ]\n})\nexport class AuthModule {\n constructor() {\n registerVersion('angularfire', VERSION.full, 'auth');\n }\n}\n\nexport function provideAuth(fn: (injector: Injector) => FirebaseAuth, ...deps: any[]): EnvironmentProviders {\n registerVersion('angularfire', VERSION.full, 'auth');\n return makeEnvironmentProviders([\n DEFAULT_AUTH_INSTANCE_PROVIDER,\n AUTH_INSTANCES_PROVIDER,\n {\n provide: PROVIDED_AUTH_INSTANCES,\n useFactory: authInstanceFactory(fn),\n multi: true,\n deps: [\n NgZone,\n Injector,\n ɵAngularFireSchedulers,\n FirebaseApps,\n [new Optional(), AppCheckInstances ],\n ...deps,\n ]\n }\n ]);\n}\n","// DO NOT MODIFY, this file is autogenerated by tools/build.ts\nimport { ɵzoneWrap } from '@angular/fire';\nimport {\n authState as _authState,\n idToken as _idToken,\n user as _user\n} from 'rxfire/auth';\n\nexport const authState = ɵzoneWrap(_authState, true);\nexport const idToken = ɵzoneWrap(_idToken, true);\nexport const user = ɵzoneWrap(_user, true);\n","// DO NOT MODIFY, this file is autogenerated by tools/build.ts\nexport * from 'firebase/auth';\nimport { ɵzoneWrap } from '@angular/fire';\nimport {\n applyActionCode as _applyActionCode,\n beforeAuthStateChanged as _beforeAuthStateChanged,\n checkActionCode as _checkActionCode,\n confirmPasswordReset as _confirmPasswordReset,\n connectAuthEmulator as _connectAuthEmulator,\n createUserWithEmailAndPassword as _createUserWithEmailAndPassword,\n deleteUser as _deleteUser,\n fetchSignInMethodsForEmail as _fetchSignInMethodsForEmail,\n getAdditionalUserInfo as _getAdditionalUserInfo,\n getAuth as _getAuth,\n getIdToken as _getIdToken,\n getIdTokenResult as _getIdTokenResult,\n getMultiFactorResolver as _getMultiFactorResolver,\n getRedirectResult as _getRedirectResult,\n initializeAuth as _initializeAuth,\n initializeRecaptchaConfig as _initializeRecaptchaConfig,\n isSignInWithEmailLink as _isSignInWithEmailLink,\n linkWithCredential as _linkWithCredential,\n linkWithPhoneNumber as _linkWithPhoneNumber,\n linkWithPopup as _linkWithPopup,\n linkWithRedirect as _linkWithRedirect,\n onAuthStateChanged as _onAuthStateChanged,\n onIdTokenChanged as _onIdTokenChanged,\n parseActionCodeURL as _parseActionCodeURL,\n reauthenticateWithCredential as _reauthenticateWithCredential,\n reauthenticateWithPhoneNumber as _reauthenticateWithPhoneNumber,\n reauthenticateWithPopup as _reauthenticateWithPopup,\n reauthenticateWithRedirect as _reauthenticateWithRedirect,\n reload as _reload,\n revokeAccessToken as _revokeAccessToken,\n sendEmailVerification as _sendEmailVerification,\n sendPasswordResetEmail as _sendPasswordResetEmail,\n sendSignInLinkToEmail as _sendSignInLinkToEmail,\n setPersistence as _setPersistence,\n signInAnonymously as _signInAnonymously,\n signInWithCredential as _signInWithCredential,\n signInWithCustomToken as _signInWithCustomToken,\n signInWithEmailAndPassword as _signInWithEmailAndPassword,\n signInWithEmailLink as _signInWithEmailLink,\n signInWithPhoneNumber as _signInWithPhoneNumber,\n signInWithPopup as _signInWithPopup,\n signInWithRedirect as _signInWithRedirect,\n signOut as _signOut,\n unlink as _unlink,\n updateCurrentUser as _updateCurrentUser,\n updateEmail as _updateEmail,\n updatePassword as _updatePassword,\n updatePhoneNumber as _updatePhoneNumber,\n updateProfile as _updateProfile,\n useDeviceLanguage as _useDeviceLanguage,\n validatePassword as _validatePassword,\n verifyBeforeUpdateEmail as _verifyBeforeUpdateEmail,\n verifyPasswordResetCode as _verifyPasswordResetCode\n} from 'firebase/auth';\n\nexport const applyActionCode = ɵzoneWrap(_applyActionCode, true);\nexport const beforeAuthStateChanged = ɵzoneWrap(_beforeAuthStateChanged, true);\nexport const checkActionCode = ɵzoneWrap(_checkActionCode, true);\nexport const confirmPasswordReset = ɵzoneWrap(_confirmPasswordReset, true, 2);\nexport const connectAuthEmulator = ɵzoneWrap(_connectAuthEmulator, true);\nexport const createUserWithEmailAndPassword = ɵzoneWrap(_createUserWithEmailAndPassword, true, 2);\nexport const deleteUser = ɵzoneWrap(_deleteUser, true, 2);\nexport const fetchSignInMethodsForEmail = ɵzoneWrap(_fetchSignInMethodsForEmail, true, 2);\nexport const getAdditionalUserInfo = ɵzoneWrap(_getAdditionalUserInfo, true, 2);\nexport const getAuth = ɵzoneWrap(_getAuth, true);\nexport const getIdToken = ɵzoneWrap(_getIdToken, true);\nexport const getIdTokenResult = ɵzoneWrap(_getIdTokenResult, true);\nexport const getMultiFactorResolver = ɵzoneWrap(_getMultiFactorResolver, true);\nexport const getRedirectResult = ɵzoneWrap(_getRedirectResult, true);\nexport const initializeAuth = ɵzoneWrap(_initializeAuth, true);\nexport const initializeRecaptchaConfig = ɵzoneWrap(_initializeRecaptchaConfig, true);\nexport const isSignInWithEmailLink = ɵzoneWrap(_isSignInWithEmailLink, true);\nexport const linkWithCredential = ɵzoneWrap(_linkWithCredential, true, 2);\nexport const linkWithPhoneNumber = ɵzoneWrap(_linkWithPhoneNumber, true, 2);\nexport const linkWithPopup = ɵzoneWrap(_linkWithPopup, true, 2);\nexport const linkWithRedirect = ɵzoneWrap(_linkWithRedirect, true, 2);\nexport const onAuthStateChanged = ɵzoneWrap(_onAuthStateChanged, true);\nexport const onIdTokenChanged = ɵzoneWrap(_onIdTokenChanged, true);\nexport const parseActionCodeURL = ɵzoneWrap(_parseActionCodeURL, true);\nexport const reauthenticateWithCredential = ɵzoneWrap(_reauthenticateWithCredential, true, 2);\nexport const reauthenticateWithPhoneNumber = ɵzoneWrap(_reauthenticateWithPhoneNumber, true, 2);\nexport const reauthenticateWithPopup = ɵzoneWrap(_reauthenticateWithPopup, true, 2);\nexport const reauthenticateWithRedirect = ɵzoneWrap(_reauthenticateWithRedirect, true, 2);\nexport const reload = ɵzoneWrap(_reload, true, 2);\nexport const revokeAccessToken = ɵzoneWrap(_revokeAccessToken, true, 2);\nexport const sendEmailVerification = ɵzoneWrap(_sendEmailVerification, true, 2);\nexport const sendPasswordResetEmail = ɵzoneWrap(_sendPasswordResetEmail, true, 2);\nexport const sendSignInLinkToEmail = ɵzoneWrap(_sendSignInLinkToEmail, true, 2);\nexport const setPersistence = ɵzoneWrap(_setPersistence, true);\nexport const signInAnonymously = ɵzoneWrap(_signInAnonymously, true, 2);\nexport const signInWithCredential = ɵzoneWrap(_signInWithCredential, true, 2);\nexport const signInWithCustomToken = ɵzoneWrap(_signInWithCustomToken, true, 2);\nexport const signInWithEmailAndPassword = ɵzoneWrap(_signInWithEmailAndPassword, true, 2);\nexport const signInWithEmailLink = ɵzoneWrap(_signInWithEmailLink, true, 2);\nexport const signInWithPhoneNumber = ɵzoneWrap(_signInWithPhoneNumber, true, 2);\nexport const signInWithPopup = ɵzoneWrap(_signInWithPopup, true, 2);\nexport const signInWithRedirect = ɵzoneWrap(_signInWithRedirect, true, 2);\nexport const signOut = ɵzoneWrap(_signOut, true, 2);\nexport const unlink = ɵzoneWrap(_unlink, true, 2);\nexport const updateCurrentUser = ɵzoneWrap(_updateCurrentUser, true, 2);\nexport const updateEmail = ɵzoneWrap(_updateEmail, true, 2);\nexport const updatePassword = ɵzoneWrap(_updatePassword, true, 2);\nexport const updatePhoneNumber = ɵzoneWrap(_updatePhoneNumber, true, 2);\nexport const updateProfile = ɵzoneWrap(_updateProfile, true, 2);\nexport const useDeviceLanguage = ɵzoneWrap(_useDeviceLanguage, true, 2);\nexport const validatePassword = ɵzoneWrap(_validatePassword, true, 2);\nexport const verifyBeforeUpdateEmail = ɵzoneWrap(_verifyBeforeUpdateEmail, true, 2);\nexport const verifyPasswordResetCode = ɵzoneWrap(_verifyPasswordResetCode, true, 2);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["ɵgetAllInstancesOf","ɵgetDefaultInstanceOf","ɵAngularFireSchedulers","ɵzoneWrap","_authState","_idToken","_user","_applyActionCode","_beforeAuthStateChanged","_checkActionCode","_confirmPasswordReset","_connectAuthEmulator","_createUserWithEmailAndPassword","_deleteUser","_fetchSignInMethodsForEmail","_getAdditionalUserInfo","_getAuth","_getIdToken","_getIdTokenResult","_getMultiFactorResolver","_getRedirectResult","_initializeAuth","_initializeRecaptchaConfig","_isSignInWithEmailLink","_linkWithCredential","_linkWithPhoneNumber","_linkWithPopup","_linkWithRedirect","_onAuthStateChanged","_onIdTokenChanged","_parseActionCodeURL","_reauthenticateWithCredential","_reauthenticateWithPhoneNumber","_reauthenticateWithPopup","_reauthenticateWithRedirect","_reload","_revokeAccessToken","_sendEmailVerification","_sendPasswordResetEmail","_sendSignInLinkToEmail","_setPersistence","_signInAnonymously","_signInWithCredential","_signInWithCustomToken","_signInWithEmailAndPassword","_signInWithEmailLink","_signInWithPhoneNumber","_signInWithPopup","_signInWithRedirect","_signOut","_unlink","_updateCurrentUser","_updateEmail","_updatePassword","_updatePhoneNumber","_updateProfile","_useDeviceLanguage","_validatePassword","_verifyBeforeUpdateEmail","_verifyPasswordResetCode"],"mappings":";;;;;;;;;;;;AAKO,MAAM,kBAAkB,GAAG,MAAM;MAM3B,IAAI,CAAA;AACf,IAAA,WAAA,CAAY,IAAkB,EAAA;AAC5B,QAAA,OAAO,IAAI;IACb;AACD;MAKY,aAAa,CAAA;AACxB,IAAA,WAAA,GAAA;AACE,QAAA,OAAOA,kBAAkB,CAAe,kBAAkB,CAAC;IAC7D;AACD;AAEM,MAAM,aAAa,GAAG,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAC7C,SAAS,CAAC,MAAM,IAAI,CAACA,kBAAkB,CAAe,kBAAkB,CAAC,CAAC,CAAC,EAC3E,QAAQ,EAAE;;ACZL,MAAM,uBAAuB,GAAG,IAAI,cAAc,CAAS,6BAA6B,CAAC;AAE1F,SAAU,0BAA0B,CAAC,QAAkC,EAAE,UAAuB,EAAA;IACpG,MAAM,WAAW,GAAGC,qBAAqB,CAAe,kBAAkB,EAAE,Q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AAC8C,SAAQ,EAAE,IAAI,EAAE,CAAC;AAC3C,MAAM,MAAM,GAAG9C,SAAS,CAAC+C,QAAO,EAAE,IAAI,EAAE,CAAC;AACzC,MAAM,iBAAiB,GAAG/C,SAAS,CAACgD,mBAAkB,EAAE,IAAI,EAAE,CAAC;AAC/D,MAAM,WAAW,GAAGhD,SAAS,CAACiD,aAAY,EAAE,IAAI,EAAE,CAAC;AACnD,MAAM,cAAc,GAAGjD,SAAS,CAACkD,gBAAe,EAAE,IAAI,EAAE,CAAC;AACzD,MAAM,iBAAiB,GAAGlD,SAAS,CAACmD,mBAAkB,EAAE,IAAI,EAAE,CAAC;AAC/D,MAAM,aAAa,GAAGnD,SAAS,CAACoD,eAAc,EAAE,IAAI,EAAE,CAAC;AACvD,MAAM,iBAAiB,GAAGpD,SAAS,CAACqD,mBAAkB,EAAE,IAAI,EAAE,CAAC;AAC/D,MAAM,gBAAgB,GAAGrD,SAAS,CAACsD,kBAAiB,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,uBAAuB,GAAGtD,SAAS,CAACuD,yBAAwB,EAAE,IAAI,EAAE,CAAC;AAC3E,MAAM,uBAAuB,GAAGvD,SAAS,CAACwD,yBAAwB,EAAE,IAAI,EAAE,CAAC;;AC/GlF;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"angular-fire-auth.mjs","sources":["../../../src/auth/auth.ts","../../../src/auth/auth.module.ts","../../../src/auth/rxfire.ts","../../../src/auth/firebase.ts","../../../src/auth/angular-fire-auth.ts"],"sourcesContent":["import { ɵgetAllInstancesOf } from '@angular/fire';\nimport { Auth as FirebaseAuth } from 'firebase/auth';\nimport { from, timer } from 'rxjs';\nimport { concatMap, distinct } from 'rxjs/operators';\n\nexport const AUTH_PROVIDER_NAME = 'auth';\n\n// see notes in core/firebase.app.module.ts for why we're building the class like this\n \nexport interface Auth extends FirebaseAuth {}\n\nexport class Auth {\n constructor(auth: FirebaseAuth) {\n return auth;\n }\n}\n\n \nexport interface AuthInstances extends Array<FirebaseAuth> {}\n\nexport class AuthInstances {\n constructor() {\n return ɵgetAllInstancesOf<FirebaseAuth>(AUTH_PROVIDER_NAME);\n }\n}\n\nexport const authInstance$ = timer(0, 300).pipe(\n concatMap(() => from(ɵgetAllInstancesOf<FirebaseAuth>(AUTH_PROVIDER_NAME))),\n distinct(),\n);\n","import {\n EnvironmentProviders,\n InjectionToken,\n Injector,\n NgModule,\n NgZone,\n Optional,\n makeEnvironmentProviders,\n} from '@angular/core';\nimport { VERSION, ɵAngularFireSchedulers, ɵgetDefaultInstanceOf } from '@angular/fire';\nimport { FirebaseApp, FirebaseApps } from '@angular/fire/app';\nimport { AppCheckInstances } from '@angular/fire/app-check';\nimport { registerVersion } from 'firebase/app';\nimport { Auth as FirebaseAuth } from 'firebase/auth';\nimport { AUTH_PROVIDER_NAME, Auth, AuthInstances } from './auth';\n\nexport const PROVIDED_AUTH_INSTANCES = new InjectionToken<Auth[]>('angularfire2.auth-instances');\n\nexport function defaultAuthInstanceFactory(provided: FirebaseAuth[]|undefined, defaultApp: FirebaseApp) {\n const defaultAuth = ɵgetDefaultInstanceOf<FirebaseAuth>(AUTH_PROVIDER_NAME, provided, defaultApp);\n return defaultAuth && new Auth(defaultAuth);\n}\n\nexport function authInstanceFactory(fn: (injector: Injector) => FirebaseAuth) {\n return (zone: NgZone, injector: Injector) => {\n const auth = zone.runOutsideAngular(() => fn(injector));\n return new Auth(auth);\n };\n}\n\nconst AUTH_INSTANCES_PROVIDER = {\n provide: AuthInstances,\n deps: [\n [new Optional(), PROVIDED_AUTH_INSTANCES ],\n ]\n};\n\nconst DEFAULT_AUTH_INSTANCE_PROVIDER = {\n provide: Auth,\n useFactory: defaultAuthInstanceFactory,\n deps: [\n [new Optional(), PROVIDED_AUTH_INSTANCES ],\n FirebaseApp,\n ]\n};\n\n@NgModule({\n providers: [\n DEFAULT_AUTH_INSTANCE_PROVIDER,\n AUTH_INSTANCES_PROVIDER,\n ]\n})\nexport class AuthModule {\n constructor() {\n registerVersion('angularfire', VERSION.full, 'auth');\n }\n}\n\nexport function provideAuth(fn: (injector: Injector) => FirebaseAuth, ...deps: any[]): EnvironmentProviders {\n registerVersion('angularfire', VERSION.full, 'auth');\n return makeEnvironmentProviders([\n DEFAULT_AUTH_INSTANCE_PROVIDER,\n AUTH_INSTANCES_PROVIDER,\n {\n provide: PROVIDED_AUTH_INSTANCES,\n useFactory: authInstanceFactory(fn),\n multi: true,\n deps: [\n NgZone,\n Injector,\n ɵAngularFireSchedulers,\n FirebaseApps,\n [new Optional(), AppCheckInstances ],\n ...deps,\n ]\n }\n ]);\n}\n","// DO NOT MODIFY, this file is autogenerated by tools/build.ts\nimport { ɵzoneWrap } from '@angular/fire';\nimport {\n authState as _authState,\n idToken as _idToken,\n user as _user\n} from 'rxfire/auth';\n\nexport const authState = ɵzoneWrap(_authState, true);\nexport const idToken = ɵzoneWrap(_idToken, true);\nexport const user = ɵzoneWrap(_user, true);\n","// DO NOT MODIFY, this file is autogenerated by tools/build.ts\nexport * from 'firebase/auth';\nimport { ɵzoneWrap } from '@angular/fire';\nimport {\n applyActionCode as _applyActionCode,\n beforeAuthStateChanged as _beforeAuthStateChanged,\n checkActionCode as _checkActionCode,\n confirmPasswordReset as _confirmPasswordReset,\n connectAuthEmulator as _connectAuthEmulator,\n createUserWithEmailAndPassword as _createUserWithEmailAndPassword,\n deleteUser as _deleteUser,\n fetchSignInMethodsForEmail as _fetchSignInMethodsForEmail,\n getAdditionalUserInfo as _getAdditionalUserInfo,\n getAuth as _getAuth,\n getIdToken as _getIdToken,\n getIdTokenResult as _getIdTokenResult,\n getMultiFactorResolver as _getMultiFactorResolver,\n getRedirectResult as _getRedirectResult,\n initializeAuth as _initializeAuth,\n initializeRecaptchaConfig as _initializeRecaptchaConfig,\n isSignInWithEmailLink as _isSignInWithEmailLink,\n linkWithCredential as _linkWithCredential,\n linkWithPhoneNumber as _linkWithPhoneNumber,\n linkWithPopup as _linkWithPopup,\n linkWithRedirect as _linkWithRedirect,\n onAuthStateChanged as _onAuthStateChanged,\n onIdTokenChanged as _onIdTokenChanged,\n parseActionCodeURL as _parseActionCodeURL,\n reauthenticateWithCredential as _reauthenticateWithCredential,\n reauthenticateWithPhoneNumber as _reauthenticateWithPhoneNumber,\n reauthenticateWithPopup as _reauthenticateWithPopup,\n reauthenticateWithRedirect as _reauthenticateWithRedirect,\n reload as _reload,\n revokeAccessToken as _revokeAccessToken,\n sendEmailVerification as _sendEmailVerification,\n sendPasswordResetEmail as _sendPasswordResetEmail,\n sendSignInLinkToEmail as _sendSignInLinkToEmail,\n setPersistence as _setPersistence,\n signInAnonymously as _signInAnonymously,\n signInWithCredential as _signInWithCredential,\n signInWithCustomToken as _signInWithCustomToken,\n signInWithEmailAndPassword as _signInWithEmailAndPassword,\n signInWithEmailLink as _signInWithEmailLink,\n signInWithPhoneNumber as _signInWithPhoneNumber,\n signInWithPopup as _signInWithPopup,\n signInWithRedirect as _signInWithRedirect,\n signOut as _signOut,\n unlink as _unlink,\n updateCurrentUser as _updateCurrentUser,\n updateEmail as _updateEmail,\n updatePassword as _updatePassword,\n updatePhoneNumber as _updatePhoneNumber,\n updateProfile as _updateProfile,\n useDeviceLanguage as _useDeviceLanguage,\n validatePassword as _validatePassword,\n verifyBeforeUpdateEmail as _verifyBeforeUpdateEmail,\n verifyPasswordResetCode as _verifyPasswordResetCode\n} from 'firebase/auth';\n\nexport const applyActionCode = ɵzoneWrap(_applyActionCode, true);\nexport const beforeAuthStateChanged = ɵzoneWrap(_beforeAuthStateChanged, false);\nexport const checkActionCode = ɵzoneWrap(_checkActionCode, true);\nexport const confirmPasswordReset = ɵzoneWrap(_confirmPasswordReset, true, 2);\nexport const connectAuthEmulator = ɵzoneWrap(_connectAuthEmulator, true);\nexport const createUserWithEmailAndPassword = ɵzoneWrap(_createUserWithEmailAndPassword, true, 2);\nexport const deleteUser = ɵzoneWrap(_deleteUser, true, 2);\nexport const fetchSignInMethodsForEmail = ɵzoneWrap(_fetchSignInMethodsForEmail, true, 2);\nexport const getAdditionalUserInfo = ɵzoneWrap(_getAdditionalUserInfo, true, 2);\nexport const getAuth = ɵzoneWrap(_getAuth, true);\nexport const getIdToken = ɵzoneWrap(_getIdToken, true);\nexport const getIdTokenResult = ɵzoneWrap(_getIdTokenResult, true);\nexport const getMultiFactorResolver = ɵzoneWrap(_getMultiFactorResolver, true);\nexport const getRedirectResult = ɵzoneWrap(_getRedirectResult, true);\nexport const initializeAuth = ɵzoneWrap(_initializeAuth, true);\nexport const initializeRecaptchaConfig = ɵzoneWrap(_initializeRecaptchaConfig, true);\nexport const isSignInWithEmailLink = ɵzoneWrap(_isSignInWithEmailLink, true);\nexport const linkWithCredential = ɵzoneWrap(_linkWithCredential, true, 2);\nexport const linkWithPhoneNumber = ɵzoneWrap(_linkWithPhoneNumber, true, 2);\nexport const linkWithPopup = ɵzoneWrap(_linkWithPopup, true, 2);\nexport const linkWithRedirect = ɵzoneWrap(_linkWithRedirect, true, 2);\nexport const onAuthStateChanged = ɵzoneWrap(_onAuthStateChanged, true);\nexport const onIdTokenChanged = ɵzoneWrap(_onIdTokenChanged, true);\nexport const parseActionCodeURL = ɵzoneWrap(_parseActionCodeURL, true);\nexport const reauthenticateWithCredential = ɵzoneWrap(_reauthenticateWithCredential, true, 2);\nexport const reauthenticateWithPhoneNumber = ɵzoneWrap(_reauthenticateWithPhoneNumber, true, 2);\nexport const reauthenticateWithPopup = ɵzoneWrap(_reauthenticateWithPopup, true, 2);\nexport const reauthenticateWithRedirect = ɵzoneWrap(_reauthenticateWithRedirect, true, 2);\nexport const reload = ɵzoneWrap(_reload, true, 2);\nexport const revokeAccessToken = ɵzoneWrap(_revokeAccessToken, true, 2);\nexport const sendEmailVerification = ɵzoneWrap(_sendEmailVerification, true, 2);\nexport const sendPasswordResetEmail = ɵzoneWrap(_sendPasswordResetEmail, true, 2);\nexport const sendSignInLinkToEmail = ɵzoneWrap(_sendSignInLinkToEmail, true, 2);\nexport const setPersistence = ɵzoneWrap(_setPersistence, true);\nexport const signInAnonymously = ɵzoneWrap(_signInAnonymously, true, 2);\nexport const signInWithCredential = ɵzoneWrap(_signInWithCredential, true, 2);\nexport const signInWithCustomToken = ɵzoneWrap(_signInWithCustomToken, true, 2);\nexport const signInWithEmailAndPassword = ɵzoneWrap(_signInWithEmailAndPassword, true, 2);\nexport const signInWithEmailLink = ɵzoneWrap(_signInWithEmailLink, true, 2);\nexport const signInWithPhoneNumber = ɵzoneWrap(_signInWithPhoneNumber, true, 2);\nexport const signInWithPopup = ɵzoneWrap(_signInWithPopup, true, 2);\nexport const signInWithRedirect = ɵzoneWrap(_signInWithRedirect, true, 2);\nexport const signOut = ɵzoneWrap(_signOut, true, 2);\nexport const unlink = ɵzoneWrap(_unlink, true, 2);\nexport const updateCurrentUser = ɵzoneWrap(_updateCurrentUser, true, 2);\nexport const updateEmail = ɵzoneWrap(_updateEmail, true, 2);\nexport const updatePassword = ɵzoneWrap(_updatePassword, true, 2);\nexport const updatePhoneNumber = ɵzoneWrap(_updatePhoneNumber, true, 2);\nexport const updateProfile = ɵzoneWrap(_updateProfile, true, 2);\nexport const useDeviceLanguage = ɵzoneWrap(_useDeviceLanguage, true, 2);\nexport const validatePassword = ɵzoneWrap(_validatePassword, true, 2);\nexport const verifyBeforeUpdateEmail = ɵzoneWrap(_verifyBeforeUpdateEmail, true, 2);\nexport const verifyPasswordResetCode = ɵzoneWrap(_verifyPasswordResetCode, true, 2);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["ɵgetAllInstancesOf","ɵgetDefaultInstanceOf","ɵAngularFireSchedulers","ɵzoneWrap","_authState","_idToken","_user","_applyActionCode","_beforeAuthStateChanged","_checkActionCode","_confirmPasswordReset","_connectAuthEmulator","_createUserWithEmailAndPassword","_deleteUser","_fetchSignInMethodsForEmail","_getAdditionalUserInfo","_getAuth","_getIdToken","_getIdTokenResult","_getMultiFactorResolver","_getRedirectResult","_initializeAuth","_initializeRecaptchaConfig","_isSignInWithEmailLink","_linkWithCredential","_linkWithPhoneNumber","_linkWithPopup","_linkWithRedirect","_onAuthStateChanged","_onIdTokenChanged","_parseActionCodeURL","_reauthenticateWithCredential","_reauthenticateWithPhoneNumber","_reauthenticateWithPopup","_reauthenticateWithRedirect","_reload","_revokeAccessToken","_sendEmailVerification","_sendPasswordResetEmail","_sendSignInLinkToEmail","_setPersistence","_signInAnonymously","_signInWithCredential","_signInWithCustomToken","_signInWithEmailAndPassword","_signInWithEmailLink","_signInWithPhoneNumber","_signInWithPopup","_signInWithRedirect","_signOut","_unlink","_updateCurrentUser","_updateEmail","_updatePassword","_updatePhoneNumber","_updateProfile","_useDeviceLanguage","_validatePassword","_verifyBeforeUpdateEmail","_verifyPasswordResetCode"],"mappings":";;;;;;;;;;;;AAKO,MAAM,kBAAkB,GAAG,MAAM;MAM3B,IAAI,CAAA;AACf,IAAA,WAAA,CAAY,IAAkB,EAAA;AAC5B,QAAA,OAAO,IAAI;IACb;AACD;MAKY,aAAa,CAAA;AACxB,IAAA,WAAA,GAAA;AACE,QAAA,OAAOA,kBAAkB,CAAe,kBAAkB,CAAC;IAC7D;AACD;AAEM,MAAM,aAAa,GAAG,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAC7C,SAAS,CAAC,MAAM,IAAI,CAACA,kBAAkB,CAAe,kBAAkB,CAAC,CAAC,CAAC,EAC3E,QAAQ,EAAE;;ACZL,MAAM,uBAAuB,GAAG,IAAI,cAAc,CAAS,6BAA6B,CAAC;AAE1F,SAAU,0BAA0B,CAAC,QAAkC,EAAE,UAAuB,EAAA;IACpG,MAAM,WAAW,GAAGC,qBAAqB,CAAe,kBAAkB,EAAE,QAAQ,EAAE,UAAU,CAAC;AACjG,IAAA,OAAO,WAAW,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC;AAC7C;AAEM,SAAU,mBAAmB,CAAC,EAAwC,EAAA;AAC1E,IAAA,OAAO,CAAC,IAAY,EAAE,QAAkB,KAAI;AAC1C,Q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D,MAAM,WAAW,GAAGhD,SAAS,CAACiD,aAAY,EAAE,IAAI,EAAE,CAAC;AACnD,MAAM,cAAc,GAAGjD,SAAS,CAACkD,gBAAe,EAAE,IAAI,EAAE,CAAC;AACzD,MAAM,iBAAiB,GAAGlD,SAAS,CAACmD,mBAAkB,EAAE,IAAI,EAAE,CAAC;AAC/D,MAAM,aAAa,GAAGnD,SAAS,CAACoD,eAAc,EAAE,IAAI,EAAE,CAAC;AACvD,MAAM,iBAAiB,GAAGpD,SAAS,CAACqD,mBAAkB,EAAE,IAAI,EAAE,CAAC;AAC/D,MAAM,gBAAgB,GAAGrD,SAAS,CAACsD,kBAAiB,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,uBAAuB,GAAGtD,SAAS,CAACuD,yBAAwB,EAAE,IAAI,EAAE,CAAC;AAC3E,MAAM,uBAAuB,GAAGvD,SAAS,CAACwD,yBAAwB,EAAE,IAAI,EAAE,CAAC;;AC/GlF;;AAEG;;"}
|
package/package.json
CHANGED
package/publish.sh
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
npm publish . --access public --registry https://wombat-dressing-room.appspot.com --tag
|
|
1
|
+
npm publish . --access public --registry https://wombat-dressing-room.appspot.com --tag canary
|