Skip to content

Commit

Permalink
Institution is optional and connectionId is required in reconnect (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-quiltt authored Mar 8, 2024
1 parent e0d670b commit 44e2bcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ExampleSwiftUI/ExampleSwiftUI/ConnectorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ struct WebView: UIViewRepresentable {
@Binding var connectionId: String
@State var config = QuilttConnectorConnectConfiguration(
connectorId: "<CONNECTOR_ID>",
// connectionId: "<CONNECTION_ID>", For reconnect
oauthRedirectUrl: "<YOUR_HTTPS_UNIVERSAL_LINK>"
// institution: "<OPTIONAL_INSTITUTION_SEARCH_TERM_TO_PREFILL_INSTITUTION>"
)

func makeUIView(context: Context) -> WKWebView {
Expand Down
4 changes: 2 additions & 2 deletions Sources/QuilttConnector/QuilttConnectorConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public struct QuilttConnectorConnectConfiguration : QuilttConnectorConfiguration
public init(
connectorId: String,
oauthRedirectUrl: String,
institution: String?
institution: String? = nil
){
self.connectorId = connectorId
self.oauthRedirectUrl = oauthRedirectUrl
Expand All @@ -35,7 +35,7 @@ public struct QuilttConnectorReconnectConfiguration: QuilttConnectorConfiguratio
public init(
connectorId: String,
oauthRedirectUrl: String,
connectionId: String? = nil
connectionId: String
){
self.connectorId = connectorId
self.oauthRedirectUrl = oauthRedirectUrl
Expand Down

0 comments on commit 44e2bcc

Please sign in to comment.