summaryrefslogtreecommitdiff
path: root/internal/notify/vapid.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/notify/vapid.go')
-rw-r--r--internal/notify/vapid.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/notify/vapid.go b/internal/notify/vapid.go
index 90d535b..d93a090 100644
--- a/internal/notify/vapid.go
+++ b/internal/notify/vapid.go
@@ -4,6 +4,8 @@ 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.
+// Note: webpush.GenerateVAPIDKeys returns (privateKey, publicKey) — we swap here.
func GenerateVAPIDKeys() (publicKey, privateKey string, err error) {
- return webpush.GenerateVAPIDKeys()
+ privateKey, publicKey, err = webpush.GenerateVAPIDKeys()
+ return
}