deleteOAuthApp
FunctiondeleteOAuthApp(requestOptions: IDeleteOAuthAppOption): Promise<IDeleteOAuthAppResponse>
Used to delete the OAuth2.0 app with given itemId
.
import { deleteOAuthApp, IDeleteOAuthAppResponse } from '@esri/arcgis-rest-developer-credentials';
import { ArcGISIdentityManager } from "@esri/arcgis-rest-request";
const authSession: ArcGISIdentityManager = await ArcGISIdentityManager.signIn({
username: "xyz_usrName",
password: "xyz_pw"
});
deleteOAuthApp({
itemId: "xyz_itemId",
authentication: authSession
}).then((deletedOAuthApp: IDeleteOAuthAppResponse) => {
// => {itemId: "xyz_itemId", success: true}
}).catch(e => {
// => an exception object
});
Parameters
Parameter | Type | Notes |
---|---|---|
request | IDeleteOAuthAppOption | Options for |
Returns
Promise<IDeleteOAuthAppResponse>
A Promise that will resolve to an IDeleteOAuthAppResponse
object representing deletion status.