Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Sources/DevNull/App/Session.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ final class Session {
components.queryItems = [
URLQueryItem(name: "fingerprint", value: key.fingerprint),
URLQueryItem(name: "device_name", value: String((Host.current().localizedName ?? "Mac").prefix(100))),
// So Settings → Devices can tell this app from others on the same Mac. The id stays when the name changes.
URLQueryItem(name: "app_name", value: "/dev/null for Mac"),
URLQueryItem(name: "app_id", value: "macos:" + (Bundle.main.bundleIdentifier ?? "sh.dev-null.mac")),
URLQueryItem(name: "code_challenge", value: challenge),
URLQueryItem(name: "code_challenge_method", value: "S256"),
URLQueryItem(name: "state", value: state),
Expand Down
Loading