File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
packages/database/src/core Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1515 * limitations under the License.
1616 */
1717
18- import { assert } from '@firebase/util' ;
18+ import { assert , EmulatorMockTokenOptions } from '@firebase/util' ;
1919
2020import { LONG_POLLING , WEBSOCKET } from '../realtime/Constants' ;
2121
@@ -28,6 +28,9 @@ import { each } from './util/util';
2828export 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 ) {
You can’t perform that action at this time.
0 commit comments