Skip to content

Instantly share code, notes, and snippets.

View crspybits's full-sized avatar
🏠
Working from home

Christopher Prince crspybits

🏠
Working from home
View GitHub Profile
@crspybits
crspybits / ServerParameters.swift
Created October 23, 2021 21:35
ServerParameters
// Typical parameters to send to a server
// See https://github.com/crspybits/SolidAuthSwift/issues/6
public struct ServerParameters: Codable {
public let refresh: RefreshParameters
// This should be something like "https://crspybits.trinpod.us", "https://crspybits.inrupt.net", or "https://pod.inrupt.com/crspybits".
// Aka. host URL; see https://github.com/SyncServerII/ServerSolidAccount/issues/4
// If this is nil (i.e., it could not be obtained here), and your app needs it, you'll need to prompt the user for it. If it is not nil, you might want to confirm the specific storage location your app plans to use with the user anyways. E.g., your app might want to use "https://pod.inrupt.com/crspybits/YourAppPath/".
public let storageIRI: URL?