diff options
Diffstat (limited to 'internal/notify/vapid.go')
| -rw-r--r-- | internal/notify/vapid.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/notify/vapid.go b/internal/notify/vapid.go new file mode 100644 index 0000000..90d535b --- /dev/null +++ b/internal/notify/vapid.go @@ -0,0 +1,9 @@ +package notify + +import webpush "github.com/SherClockHolmes/webpush-go" + +// GenerateVAPIDKeys generates a VAPID key pair for web push notifications. +// Returns the base64url-encoded public and private keys. +func GenerateVAPIDKeys() (publicKey, privateKey string, err error) { + return webpush.GenerateVAPIDKeys() +} |
