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

AuthScheme and improved example

Open SherClockHolmes opened this issue 2 months ago • 0 comments

Fixes for https://github.com/SherClockHolmes/webpush-go/issues/82, https://github.com/SherClockHolmes/webpush-go/issues/72

Updated the library to support both the original and modern VAPID authentication schemes (vapid and webpush) to handle browser inconsistencies. A new AuthScheme option has been added to the Options struct to select the desired scheme, defaulting to vapid. The example application has also been updated to handle the management for vapid keys automatically.

SherClockHolmes avatar Nov 08 '25 17:11 SherClockHolmes