Skip to content

Commit

Permalink
SimplenoteAppDelegate: Wiring Authentication Activity
Browse files Browse the repository at this point in the history
  • Loading branch information
jleandroperez committed Jul 1, 2024
1 parent d3bce8f commit 12582b8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Simplenote/SimplenoteAppDelegate+Swift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,14 @@ extension SimplenoteAppDelegate {
return handleShortcutActivity(userActivity)
}

private func handleMagicLinkActivity(_ userActivity: NSUserActivity) -> Bool {
guard let url = userActivity.webpageURL else {
return false
}

return handleMagicAuth(url: url)
}

private func handleSpotlightSearchActivity(_ userActivity: NSUserActivity) -> Bool {
guard userActivity.activityType == CSSearchableItemActionType,
let simperiumKey = userActivity.userInfo?[CSSearchableItemActivityIdentifier] as? String else {
Expand Down

0 comments on commit 12582b8

Please sign in to comment.