import { IRequestOptions , request } from "@esri/arcgis-rest-request" ; import { getPortalApiUrl } from "@esri/hub-common" ; param { string } itemId param { Array } redirectUris param { string } appType param { IRequestOptions } requestOptions export function registerBrowserApp ( itemId , redirectUris , requestOptions ) { const url = `${ getPortalApiUrl ( requestOptions ) }/oauth2/registerApp` ; const options = { method : "POST" , authentication : requestOptions . authentication , params : { itemId , appType : "browser" , redirect_uris : JSON . stringify ( redirectUris ) } } ; return request ( url , options ) ; }