File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages-exp/auth-exp/src/core/strategies Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
+ import * as externs from '@firebase/auth-types-exp' ;
18
19
import { OperationType , UserCredential } from '@firebase/auth-types-exp' ;
20
+
19
21
import { Auth } from '../../model/auth' ;
20
22
import { AuthCredential } from '../../model/auth_credential' ;
21
23
import { User } from '../../model/user' ;
22
24
import { UserCredentialImpl } from '../user/user_credential_impl' ;
23
25
24
26
export async function signInWithCredential (
25
- auth : Auth ,
26
- credential : AuthCredential
27
+ authExtern : externs . Auth ,
28
+ credentialExtern : externs . AuthCredential
27
29
) : Promise < UserCredential > {
30
+ const auth = authExtern as Auth ;
31
+ const credential = credentialExtern as AuthCredential ;
28
32
// TODO: handle mfa by wrapping with callApiWithMfaContext
29
33
const response = await credential . _getIdTokenResponse ( auth ) ;
30
34
const userCredential = await UserCredentialImpl . _fromIdTokenResponse (
You can’t perform that action at this time.
0 commit comments