File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages-exp/auth-exp/src/api Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export async function performApiRequest<T, V>(
63
63
const errorMap = { ...SERVER_ERROR_MAP , ...customErrorMap } ;
64
64
try {
65
65
let body = { } ;
66
- const params : { [ key : string ] : string } = {
66
+ const params : { [ key : string ] : string ; } = {
67
67
key : auth . config . apiKey
68
68
} ;
69
69
if ( request ) {
@@ -77,10 +77,9 @@ export async function performApiRequest<T, V>(
77
77
}
78
78
79
79
const queryString = Object . keys ( params )
80
- . map (
81
- key => `${ encodeURIComponent ( key ) } =${ encodeURIComponent ( params [ key ] ) } `
82
- )
83
- . join ( '&' ) ;
80
+ . map ( key => {
81
+ return `${ encodeURIComponent ( key ) } =${ encodeURIComponent ( params [ key ] ) } ` ;
82
+ } ) . join ( '&' ) ;
84
83
85
84
const response = await fetch (
86
85
`${ auth . config . apiScheme } ://${ auth . config . apiHost } ${ path } ?${ queryString } ` ,
You can’t perform that action at this time.
0 commit comments