This PR addresses an issue with the algorithm parameter in the JWT signing process for notifications and updates the structure of the notification payload. Previously, the algorithm was passed in an incorrect position, which caused unintended behavior in token generation. This update moves the algorithm parameter to the correct location, ensuring that tokens are signed with the intended algorithm.
Changes
Corrected the position of the algorithm parameter in the jwt.sign function for notifications.
Cleaned up the notification payload to include only the necessary fields, making sure it meets the latest requirements.
Summary
This PR addresses an issue with the algorithm parameter in the JWT signing process for notifications and updates the structure of the notification payload. Previously, the algorithm was passed in an incorrect position, which caused unintended behavior in token generation. This update moves the algorithm parameter to the correct location, ensuring that tokens are signed with the intended algorithm.
Changes