Skip to content

Commit 50a69c0

Browse files
committed
pass value directing into set
1 parent 80688e2 commit 50a69c0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

templates/swift/Sources/OAuth/WebAuthComponent.swift.twig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ public class WebAuthComponent {
100100
cookie += "; secure"
101101
}
102102

103-
let new = [cookie]
104-
105-
UserDefaults.standard.set(new, forKey: domain)
103+
UserDefaults.standard.set([cookie], forKey: domain)
106104

107105
WebAuthComponent.onCallback(
108106
scheme: components.scheme!,

0 commit comments

Comments
 (0)