File tree Expand file tree Collapse file tree
packages-exp/auth-exp/src
platform_browser/recaptcha Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,12 @@ export const enum Buffer {
3232 TOKEN_REFRESH = 30_000
3333}
3434
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+ */
3541export class StsTokenManager {
3642 refreshToken : string | null = null ;
3743 accessToken : string | null = null ;
Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ export interface ConfigInternal extends Config {
4848 clientPlatform : ClientPlatform ;
4949}
5050
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+ */
5157export interface AuthInternal extends Auth {
5258 currentUser : User | null ;
5359 emulatorConfig : EmulatorConfig | null ;
Original file line number Diff line number Diff line change @@ -79,6 +79,12 @@ export interface EventManager {
7979 unregisterConsumer ( authEventConsumer : AuthEventConsumer ) : void ;
8080}
8181
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+ */
8288export interface PopupRedirectResolverInternal extends PopupRedirectResolver {
8389 // Whether or not to initialize the event manager early
8490 _shouldInitProactively : boolean ;
Original file line number Diff line number Diff line change @@ -52,6 +52,12 @@ export interface UserParameters {
5252 lastLoginAt ?: string | null ;
5353}
5454
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+ */
5561export interface UserInternal extends User {
5662 displayName : string | null ;
5763 email : string | null ;
Original file line number Diff line number Diff line change @@ -32,6 +32,12 @@ export const _JSLOAD_CALLBACK = jsHelpers._generateCallbackName('rcb');
3232const NETWORK_TIMEOUT_DELAY = new Delay ( 30000 , 60000 ) ;
3333const RECAPTCHA_BASE = 'https://www.google.com/recaptcha/api.js?' ;
3434
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+ */
3541export interface ReCaptchaLoader {
3642 load ( auth : AuthInternal , hl ?: string ) : Promise < Recaptcha > ;
3743 clearedOneInstance ( ) : void ;
You can’t perform that action at this time.
0 commit comments