Initial context requires sharing user data
// Serialize your user dictionary
let userData: [String: Any] = [
"name": "John Doe",
"age": 30,
"isSubscriber": true,
"preferences": ["theme": "dark", "notifications": false]
]
extension Portal {
static let checkout = Self(
name: "checkout",
startDir: "portals/shopwebapp",
initialContext: [
"userProfile": JSONSerialization.data(withJSONObject: userData)
],
)
}