@infrab4a/connect 4.25.1 → 4.25.2-beta.2

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/index.cjs.js CHANGED
@@ -1254,6 +1254,8 @@ const parseDateTime = (value) => {
1254
1254
  return date;
1255
1255
  };
1256
1256
 
1257
+ if (!global && globalThis)
1258
+ global = globalThis;
1257
1259
  const deserialize = (data) => {
1258
1260
  return eval('(' + data + ')');
1259
1261
  };
@@ -3164,7 +3166,7 @@ class AuthenticationFirebaseAuthService {
3164
3166
  };
3165
3167
  }
3166
3168
  async signInWithGoogle() {
3167
- const credentials = await auth.signInWithPopup(this.firebaseAuth, new auth.GoogleAuthProvider());
3169
+ const credentials = await auth.signInWithPopup(this.firebaseAuth, new auth.GoogleAuthProvider(), auth.browserPopupRedirectResolver);
3168
3170
  const user = credentials.user;
3169
3171
  return {
3170
3172
  id: user.uid,
package/index.esm.js CHANGED
@@ -9,7 +9,7 @@ import { debug } from 'debug';
9
9
  import * as serializeJavascript from 'serialize-javascript';
10
10
  import { CustomError } from 'ts-custom-error';
11
11
  import axios, { AxiosError } from 'axios';
12
- import { signInWithEmailAndPassword, signInWithPopup, GoogleAuthProvider, signInAnonymously, sendPasswordResetEmail, createUserWithEmailAndPassword, sendEmailVerification } from 'firebase/auth';
12
+ import { signInWithEmailAndPassword, signInWithPopup, GoogleAuthProvider, browserPopupRedirectResolver, signInAnonymously, sendPasswordResetEmail, createUserWithEmailAndPassword, sendEmailVerification } from 'firebase/auth';
13
13
  import { Md5 } from 'ts-md5';
14
14
  import { deleteField, arrayUnion, arrayRemove, Timestamp, doc, getDoc, updateDoc, setDoc, deleteDoc, collection, limit, getDocs, query, where, orderBy, startAfter, addDoc } from 'firebase/firestore';
15
15
  import { ref, uploadBytes } from 'firebase/storage';
@@ -1229,6 +1229,8 @@ const parseDateTime = (value) => {
1229
1229
  return date;
1230
1230
  };
1231
1231
 
1232
+ if (!global && globalThis)
1233
+ global = globalThis;
1232
1234
  const deserialize = (data) => {
1233
1235
  return eval('(' + data + ')');
1234
1236
  };
@@ -3139,7 +3141,7 @@ class AuthenticationFirebaseAuthService {
3139
3141
  };
3140
3142
  }
3141
3143
  async signInWithGoogle() {
3142
- const credentials = await signInWithPopup(this.firebaseAuth, new GoogleAuthProvider());
3144
+ const credentials = await signInWithPopup(this.firebaseAuth, new GoogleAuthProvider(), browserPopupRedirectResolver);
3143
3145
  const user = credentials.user;
3144
3146
  return {
3145
3147
  id: user.uid,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.25.1",
3
+ "version": "4.25.2-beta.2",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },