From 27fa6d5dc91077dc08b617846f6ef93a67c6fece Mon Sep 17 00:00:00 2001 From: Dimitri Bouniol Date: Sun, 5 Jan 2025 12:45:08 -0800 Subject: [PATCH] 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 {