From 29c7caa5916f6c5b4e8ee33475bef4426f444d07 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Thu, 22 Jul 2021 20:32:37 -0400 Subject: [PATCH] set up auth key with path --- internal/worker/notifications.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/worker/notifications.go b/internal/worker/notifications.go index 8989ede..a3b55ff 100644 --- a/internal/worker/notifications.go +++ b/internal/worker/notifications.go @@ -48,7 +48,7 @@ func NewNotificationsWorker(logger *logrus.Logger, statsd *statsd.Client, db *pg var apns *token.Token { - authKey, err := token.AuthKeyFromBytes([]byte(os.Getenv("APPLE_KEY_PKEY"))) + authKey, err := token.AuthKeyFromFile(os.Getenv("APPLE_KEY_PATH")) if err != nil { panic(err) }