Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function setupApp() {
try {
await userbaseServer.createApp(APP_NAME, ADMIN_ID, APP_ID)
} catch (e) {
if (!e || e.status !== CONFLICT_STATUS_CODE) {
console.log(`Failed to set up new app with ${JSON.stringify(e)}`)
}
}
}