Get notified when perms are changed
Is it possible to get notified when a particular permission is granted by the user, manually from System Preferences or through the prompt?
@KishanBagaria - you can use getAuthStatus to poll for the status change.
@KishanBagaria this is in theory possible using a similar approach to what's done in node-mac-contacts - i'd need to implement manual management of an EventEmitter since this isn't a class-based module. It might also be rather trickier because in this case we're needing to poll for a pretty wide range of notifications, each of which would need to be scaffolded up and torn down carefully to avoid leaks and crashes.
Like @glawson said you can for now poll with getAuthStatus() - i'd consider the event emission approach but it's gonna be a wild enough ride that i don't think i myself will have the cycles in the near future 🤔