set up auth key with path

This commit is contained in:
Andre Medeiros 2021-07-22 20:32:37 -04:00
parent 5bc5d80447
commit 29c7caa591

View file

@ -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)
}