File tree 5 files changed +30
-0
lines changed
packages-exp/auth-exp/src
platform_browser/recaptcha
5 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,12 @@ export const enum Buffer {
32
32
TOKEN_REFRESH = 30_000
33
33
}
34
34
35
+ /**
36
+ * We need to mark this class as internal explicitly to exclude it in the public typings, because
37
+ * it references AuthInternal which has a circular dependency with UserInternal.
38
+ *
39
+ * @internal
40
+ */
35
41
export class StsTokenManager {
36
42
refreshToken : string | null = null ;
37
43
accessToken : string | null = null ;
Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ export interface ConfigInternal extends Config {
48
48
clientPlatform : ClientPlatform ;
49
49
}
50
50
51
+ /**
52
+ * UserInternal and AuthInternal reference each other, so both of them are included in the public typings.
53
+ * In order to exclude them, we mark them as internal explicitly.
54
+ *
55
+ * @internal
56
+ */
51
57
export interface AuthInternal extends Auth {
52
58
currentUser : User | null ;
53
59
emulatorConfig : EmulatorConfig | null ;
Original file line number Diff line number Diff line change @@ -79,6 +79,12 @@ export interface EventManager {
79
79
unregisterConsumer ( authEventConsumer : AuthEventConsumer ) : void ;
80
80
}
81
81
82
+ /**
83
+ * We need to mark this interface as internal explicitly to exclude it in the public typings, because
84
+ * it references AuthInternal which has a circular dependency with UserInternal.
85
+ *
86
+ * @internal
87
+ */
82
88
export interface PopupRedirectResolverInternal extends PopupRedirectResolver {
83
89
// Whether or not to initialize the event manager early
84
90
_shouldInitProactively : boolean ;
Original file line number Diff line number Diff line change @@ -52,6 +52,12 @@ export interface UserParameters {
52
52
lastLoginAt ?: string | null ;
53
53
}
54
54
55
+ /**
56
+ * UserInternal and AuthInternal reference each other, so both of them are included in the public typings.
57
+ * In order to exclude them, we mark them as internal explicitly.
58
+ *
59
+ * @internal
60
+ */
55
61
export interface UserInternal extends User {
56
62
displayName : string | null ;
57
63
email : string | null ;
Original file line number Diff line number Diff line change @@ -32,6 +32,12 @@ export const _JSLOAD_CALLBACK = jsHelpers._generateCallbackName('rcb');
32
32
const NETWORK_TIMEOUT_DELAY = new Delay ( 30000 , 60000 ) ;
33
33
const RECAPTCHA_BASE = 'https://www.google.com/recaptcha/api.js?' ;
34
34
35
+ /**
36
+ * We need to mark this interface as internal explicitly to exclude it in the public typings, because
37
+ * it references AuthInternal which has a circular dependency with UserInternal.
38
+ *
39
+ * @internal
40
+ */
35
41
export interface ReCaptchaLoader {
36
42
load ( auth : AuthInternal , hl ?: string ) : Promise < Recaptcha > ;
37
43
clearedOneInstance ( ) : void ;
You can’t perform that action at this time.
0 commit comments