To add an application to the auth environment you use the addApplication() method of the admin object created above. To add an application named app
we would use the following:
admin.addApp('app')
Likewise you can check if applications exist using admin.appExists(app) and remove applications using admin.removeApp(app). You can get a list of applications using admin.apps()