()
| 150 | } |
| 151 | |
| 152 | async function main() { |
| 153 | console.log('🗑️ Deregister SSO Provider Script') |
| 154 | console.log('====================================') |
| 155 | console.log('This script removes SSO provider records from the database.\n') |
| 156 | |
| 157 | const success = await deregisterSSOProvider() |
| 158 | |
| 159 | if (success) { |
| 160 | console.log('\n🎉 SSO provider deregistration completed successfully!') |
| 161 | process.exit(0) |
| 162 | } else { |
| 163 | console.log('\n💥 SSO deregistration failed. Check the logs above for details.') |
| 164 | process.exit(1) |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | main().catch((error) => { |
| 169 | logger.error('Script execution failed:', { error }) |
no test coverage detected