Skip to content

Commit 7c89fcf

Browse files
committed
Update RepoInfo.ts
1 parent 45f5d19 commit 7c89fcf

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

packages/database/src/core/RepoInfo.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { assert } from '@firebase/util';
18+
import { assert, EmulatorMockTokenOptions } from '@firebase/util';
1919

2020
import { LONG_POLLING, WEBSOCKET } from '../realtime/Constants';
2121

@@ -28,6 +28,9 @@ import { each } from './util/util';
2828
export class RepoInfo {
2929
private _host: string;
3030
private _domain: string;
31+
private _emulatorOptions: {
32+
mockUserToken?: EmulatorMockTokenOptions | string;
33+
};
3134
internalHost: string;
3235

3336
/**
@@ -50,6 +53,7 @@ export class RepoInfo {
5053
) {
5154
this._host = host.toLowerCase();
5255
this._domain = this._host.substr(this._host.indexOf('.') + 1);
56+
this._emulatorOptions = {};
5357
this.internalHost =
5458
(PersistentStorage.get('host:' + host) as string) || this._host;
5559
}
@@ -78,6 +82,12 @@ export class RepoInfo {
7882
}
7983
}
8084

85+
get emulatorOptions(): {
86+
mockUserToken?: EmulatorMockTokenOptions | string;
87+
} {
88+
return this._emulatorOptions;
89+
}
90+
8191
toString(): string {
8292
let str = this.toURLString();
8393
if (this.persistenceKey) {

0 commit comments

Comments
 (0)