revokedNotificationRoute method

Route revokedNotificationRoute()

Route for handling revoking sessions based on server-to-server notifications coming from Apple.

To be mounted as a POST handler under the URL configured in Apple's developer portal, for example:

 pod.webServer.addRoute(
   appleIdp.revokedNotificationRoute(),
   '/hooks/apple-notification',
);

If the notification is of type AppleServerNotificationConsentRevoked or AppleServerNotificationAccountDelete, all sessions based on the Apple authentication for that account will be revoked.

Implementation

Route revokedNotificationRoute() =>
    AppleRevokedNotificationRoute(utils: utils);