When subscribing to Microsoft Graph API events you have two options
This custom code component (no external libraries used) allows easy decryption of the rich notification payload. In addition it validates the data payload (can be skipped) to mitigate tampered payload.