webpush-go icon indicating copy to clipboard operation
webpush-go copied to clipboard

Public key is not a valid point on the curve

Open komi2013 opened this issue 2 years ago • 1 comments

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 avatar Oct 26 '23 14:10 komi2013

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

komi2013 avatar Oct 30 '23 04:10 komi2013