From af1c59762d70d1065ddbc0d7902ea9b3dacd1a26 Mon Sep 17 00:00:00 2001 From: Dimitri Bouniol Date: Tue, 7 Jan 2025 08:49:29 -0800 Subject: [PATCH] Updating Key Collections (#164) Fixed an issue where the key collection couldn't actually be changed --- Sources/JWT/Application+JWT.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/JWT/Application+JWT.swift b/Sources/JWT/Application+JWT.swift index 15a41e4..76062f9 100644 --- a/Sources/JWT/Application+JWT.swift +++ b/Sources/JWT/Application+JWT.swift @@ -42,7 +42,7 @@ extension Application { public var keys: JWTKeyCollection { get { self.storage.keys } - set { self.storage.keys = newValue } + nonmutating set { self.storage.keys = newValue } } private var storage: Storage {