SherClockHolmes / webpush-go

Web Push API Encryption with VAPID support.
MIT License
312 stars 67 forks source link

Public key is not a valid point on the curve #56

Open komi2013 opened 8 months ago

komi2013 commented 8 months ago

I try this library but I got this error Public key is not a valid point on the curve

when I use Node.js, it works but golang doesn't work could you tell me what was wrong?

komi2013 commented 8 months ago

subscribe has to be like this format

{
    "endpoint":"https://updates.push.services.mozilla.com/wpush/v2/gAAAAABlXQ",
    "expirationTime":null,
    "keys":{
        "auth":"13BeZk6OxQ",
        "p256dh":"BGMHqnyXJ35MP2OgCM3ZvI"
    }
}

not include subscription after remove subscription from json, it works. thanks