File tree Expand file tree Collapse file tree 4 files changed +6
-15
lines changed Expand file tree Collapse file tree 4 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,6 @@ export interface FirebaseOptions {
73
73
74
74
// @public
75
75
export interface FirebaseServerApp extends FirebaseApp {
76
- // (undocumented)
77
- readonly installationsAuthToken: string | null ;
78
- // (undocumented)
79
76
readonly installationsId: string | null ;
80
77
name: string ;
81
78
readonly settings: FirebaseServerAppSettings ;
Original file line number Diff line number Diff line change @@ -144,15 +144,6 @@ export class FirebaseServerAppImpl
144
144
return this . _serverConfig ;
145
145
}
146
146
147
- get installationsAuthToken ( ) : string | null {
148
- this . checkDestroyed ( ) ;
149
- if ( this . _serverConfig . installationsAuthToken !== undefined ) {
150
- return this . _serverConfig . installationsAuthToken ;
151
- } else {
152
- return null ;
153
- }
154
- }
155
-
156
147
get installationsId ( ) : string | null {
157
148
this . checkDestroyed ( ) ;
158
149
return this . _installationsId ;
Original file line number Diff line number Diff line change @@ -101,8 +101,11 @@ export interface FirebaseServerApp extends FirebaseApp {
101
101
*/
102
102
readonly settings : FirebaseServerAppSettings ;
103
103
104
+ /**
105
+ * The parsed Firebase Installations Id token if a `installationsAuthToken` was provided to
106
+ * {@link (initializeServerApp:1) | initializeServerApp()}. Null otherwise.
107
+ */
104
108
readonly installationsId : string | null ;
105
- readonly installationsAuthToken : string | null ;
106
109
}
107
110
108
111
/**
Original file line number Diff line number Diff line change @@ -35,12 +35,12 @@ export async function getToken(
35
35
forceRefresh = false
36
36
) : Promise < string > {
37
37
if ( _isFirebaseServerApp ( installations . app ) ) {
38
- if ( ! installations . app . installationsAuthToken ) {
38
+ if ( ! installations . app . settings . installationsAuthToken ) {
39
39
throw ERROR_FACTORY . create (
40
40
ErrorCode . SERVER_APP_MISSING_INSTALLATIONS_AUTH_TOKEN
41
41
) ;
42
42
}
43
- return installations . app . installationsAuthToken ;
43
+ return installations . app . settings . installationsAuthToken ;
44
44
}
45
45
const installationsImpl = installations as FirebaseInstallationsImpl ;
46
46
await completeInstallationRegistration ( installationsImpl ) ;
You can’t perform that action at this time.
0 commit comments