How to use onesignal push notification for novu ?

I want to use One Signal for push notification. I entered the necessary information, but I get this error. Can you help me on how to do it?

I looked here but I didn't understand what it does. It wants me to re-set someone who is already subscribed. I tried it but it didn't work.
https://docs.novu.co/channels-and-providers/push/onesignal
 const res = await novu.subscribers.get(userProfile.id.toString());
              console.log("zxcresponse",res.data)
              await novu.subscribers.setCredentials(res.data.data.subscriberId, PushProviderIdEnum.OneSignal, {
                // Your user's unique 'player_id' from OneSignal
                deviceTokens: [res.data.data.id],
              });
Screenshot_2024-02-28_at_19.13.18.png
Was this page helpful?