From a5aa8a52985f99a67f63fb0ffe2d60917921280a Mon Sep 17 00:00:00 2001 From: Mark Hammond Date: Fri, 6 Oct 2023 15:55:10 -0400 Subject: [PATCH] Document that push `KeyInfo` elements are base64 encoded. Fixes #2069 --- components/push/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/push/src/lib.rs b/components/push/src/lib.rs index a741e832a4..576517c3d0 100644 --- a/components/push/src/lib.rs +++ b/components/push/src/lib.rs @@ -381,7 +381,8 @@ impl PushManager { } } -/// Key Information that can be used to encrypt payloads +/// Key Information that can be used to encrypt payloads. These are encoded as base64 +/// so will need to be decoded before they can actually be used as keys. #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)] pub struct KeyInfo { pub auth: String,