File tree Expand file tree Collapse file tree 4 files changed +4
-20
lines changed
packages-exp/auth-exp/src/core/credentials Expand file tree Collapse file tree 4 files changed +4
-20
lines changed Original file line number Diff line number Diff line change 18
18
import { PhoneOrOauthTokenResponse } from '../../api/authentication/mfa' ;
19
19
import { AuthCore } from '../../model/auth' ;
20
20
import { IdTokenResponse } from '../../model/id_token' ;
21
- import { EmailAuthCredential , OAuthCredential , PhoneAuthCredential } from './' ;
22
21
import { debugFail } from '../util/assert' ;
23
22
24
23
export class AuthCredential {
@@ -27,21 +26,6 @@ export class AuthCredential {
27
26
readonly signInMethod : string
28
27
) { }
29
28
30
- static fromJSON ( json : object | string ) : AuthCredential | null {
31
- for ( const fn of [
32
- /* SAMLAuthCredential.fromJSON, */
33
- OAuthCredential . fromJSON ,
34
- EmailAuthCredential . fromJSON ,
35
- PhoneAuthCredential . fromJSON
36
- ] ) {
37
- const credential = fn ( json ) ;
38
- if ( credential ) {
39
- return credential ;
40
- }
41
- }
42
- return null ;
43
- }
44
-
45
29
toJSON ( ) : object {
46
30
return debugFail ( 'not implemented' ) ;
47
31
}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import { AuthCore } from '../../model/auth';
27
27
import { IdTokenResponse } from '../../model/id_token' ;
28
28
import { AuthErrorCode } from '../errors' ;
29
29
import { fail } from '../util/assert' ;
30
- import { AuthCredential } from './' ;
30
+ import { AuthCredential } from './auth_credential ' ;
31
31
32
32
export class EmailAuthCredential
33
33
extends AuthCredential
Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ import {
23
23
SignInWithIdpRequest
24
24
} from '../../api/authentication/idp' ;
25
25
import { AuthCore } from '../../model/auth' ;
26
+ import { IdTokenResponse } from '../../model/id_token' ;
26
27
import { AuthErrorCode } from '../errors' ;
27
28
import { fail } from '../util/assert' ;
28
- import { AuthCredential } from './' ;
29
- import { IdTokenResponse } from '../../model/id_token' ;
29
+ import { AuthCredential } from './auth_credential' ;
30
30
31
31
const IDP_REQUEST_URI = 'http://localhost' ;
32
32
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import {
26
26
} from '../../api/authentication/sms' ;
27
27
import { AuthCore } from '../../model/auth' ;
28
28
import { IdTokenResponse } from '../../model/id_token' ;
29
- import { AuthCredential } from './' ;
29
+ import { AuthCredential } from './auth_credential ' ;
30
30
31
31
export interface PhoneAuthCredentialParameters {
32
32
verificationId ?: string ;
You can’t perform that action at this time.
0 commit comments