Skip to content

Commit 847f6d8

Browse files
committed
Fix up authCredential types to use public versions
1 parent 1ed60a1 commit 847f6d8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages-exp/auth-exp/src/core/strategies/credential.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,20 @@
1515
* limitations under the License.
1616
*/
1717

18+
import * as externs from '@firebase/auth-types-exp';
1819
import { OperationType, UserCredential } from '@firebase/auth-types-exp';
20+
1921
import { Auth } from '../../model/auth';
2022
import { AuthCredential } from '../../model/auth_credential';
2123
import { User } from '../../model/user';
2224
import { UserCredentialImpl } from '../user/user_credential_impl';
2325

2426
export async function signInWithCredential(
25-
auth: Auth,
26-
credential: AuthCredential
27+
authExtern: externs.Auth,
28+
credentialExtern: externs.AuthCredential
2729
): Promise<UserCredential> {
30+
const auth = authExtern as Auth;
31+
const credential = credentialExtern as AuthCredential;
2832
// TODO: handle mfa by wrapping with callApiWithMfaContext
2933
const response = await credential._getIdTokenResponse(auth);
3034
const userCredential = await UserCredentialImpl._fromIdTokenResponse(

0 commit comments

Comments
 (0)