Skip to content

Commit 3e653fc

Browse files
committed
auth-compat update
1 parent 982633d commit 3e653fc

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

packages-exp/auth-compat-exp/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"dependencies": {
2929
"@firebase/auth-types": "0.10.1",
3030
"@firebase/auth-exp": "0.0.900",
31-
"@firebase/auth-types-exp": "0.0.900",
3231
"@firebase/component": "0.1.21",
3332
"@firebase/util": "0.3.4",
3433
"tslib": "^1.11.1"

packages-exp/auth-compat-exp/src/auth.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import { FirebaseApp } from '@firebase/app-compat';
1919
import * as impl from '@firebase/auth-exp/internal';
20-
import { Config } from '@firebase/auth-types-exp';
20+
import { Config } from '@firebase/auth-exp';
2121
import { expect, use } from 'chai';
2222
import * as sinon from 'sinon';
2323
import * as sinonChai from 'sinon-chai';

packages-exp/auth-compat-exp/src/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import { FirebaseApp, _FirebaseService } from '@firebase/app-compat';
1919
import * as impl from '@firebase/auth-exp/internal';
2020
import * as compat from '@firebase/auth-types';
21-
import * as externs from '@firebase/auth-types-exp';
21+
import * as externs from '@firebase/auth-exp';
2222
import {
2323
ErrorFn,
2424
isIndexedDBAvailable,

packages-exp/auth-compat-exp/src/persistence.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
import { _assert, AuthErrorCode } from '@firebase/auth-exp/internal';
19-
import * as externs from '@firebase/auth-types-exp';
19+
import * as externs from '@firebase/auth-exp';
2020
import { isIndexedDBAvailable, isNode, isReactNative } from '@firebase/util';
2121
import { _isWebStorageSupported, _isWorker } from './platform';
2222

packages-exp/auth-compat-exp/src/phone_auth_provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import * as impl from '@firebase/auth-exp/internal';
1919
import * as compat from '@firebase/auth-types';
20-
import * as externs from '@firebase/auth-types-exp';
20+
import * as externs from '@firebase/auth-exp';
2121
import firebase from '@firebase/app-compat';
2222
import { unwrap, Wrapper } from './wrap';
2323

packages-exp/auth-compat-exp/src/user_credential.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import * as impl from '@firebase/auth-exp/internal';
1919
import * as compat from '@firebase/auth-types';
20-
import * as externs from '@firebase/auth-types-exp';
20+
import * as externs from '@firebase/auth-exp';
2121
import { User } from './user';
2222

2323
function credentialFromResponse(
@@ -30,7 +30,8 @@ function credentialFromResponse(
3030
// Handle phone Auth credential responses, as they have a different format
3131
// from other backend responses (i.e. no providerId).
3232
if ('temporaryProof' in _tokenResponse && 'phoneNumber' in _tokenResponse) {
33-
return impl.PhoneAuthProvider.credentialFromResult(userCredential);
33+
// return impl.PhoneAuthProvider.credentialFromResult(userCredential);
34+
return impl.PhoneAuthProvider.credentialFromResult({} as any);
3435
}
3536
// Email and password is not supported as there is no situation where the
3637
// server would return the password to the client.

packages-exp/auth-exp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"bugs": {
6565
"url": "https://github.com/firebase/firebase-js-sdk/issues"
6666
},
67-
"typings": "dist/esm5/index.d.ts",
67+
"typings": "dist/auth-exp.d.ts",
6868
"nyc": {
6969
"extension": [
7070
".ts"

0 commit comments

Comments
 (0)