File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
packages-exp/auth-exp/src Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 19
19
20
20
import { querystring } from '@firebase/util' ;
21
21
22
- import { HttpMethod , performFetchWithErrorHandling } from '../' ;
22
+ import { _performFetchWithErrorHandling , HttpMethod } from '../' ;
23
23
import { Auth } from '../../model/auth' ;
24
24
25
25
export const _ENDPOINT = 'v1/token' ;
@@ -42,7 +42,7 @@ export async function requestStsToken(
42
42
auth : Auth ,
43
43
refreshToken : string
44
44
) : Promise < RequestStsTokenResponse > {
45
- const response = await performFetchWithErrorHandling <
45
+ const response = await _performFetchWithErrorHandling <
46
46
RequestStsTokenServerResponse
47
47
> ( auth , { } , ( ) => {
48
48
const body = querystring ( {
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ export async function _performApiRequest<T, V>(
59
59
request ?: T ,
60
60
customErrorMap : Partial < ServerErrorMap < ServerError > > = { }
61
61
) : Promise < V > {
62
- return performFetchWithErrorHandling ( auth , customErrorMap , ( ) => {
62
+ return _performFetchWithErrorHandling ( auth , customErrorMap , ( ) => {
63
63
let body = { } ;
64
64
let params = { } ;
65
65
if ( request ) {
@@ -92,7 +92,7 @@ export async function _performApiRequest<T, V>(
92
92
} ) ;
93
93
}
94
94
95
- export async function performFetchWithErrorHandling < V > (
95
+ export async function _performFetchWithErrorHandling < V > (
96
96
auth : Auth ,
97
97
customErrorMap : Partial < ServerErrorMap < ServerError > > ,
98
98
fetchFn : ( ) => Promise < Response >
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- import { FirebaseError } from '@firebase/util' ;
19
18
import { expect , use } from 'chai' ;
20
19
import * as chaiAsPromised from 'chai-as-promised' ;
21
20
You can’t perform that action at this time.
0 commit comments