Skip to content

Commit c47aee0

Browse files
authored
Merge pull request #162 from 1Password/eddy/add-windows-support
Enable the SDK to authenticate via the 1Password app on Windows
2 parents b24bdc0 + 68718a5 commit c47aee0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

client/src/shared_lib_core.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@ const find1PasswordLibPath = (): string => {
3232
];
3333
break;
3434

35+
case "win32": // Windows
36+
searchPaths = [
37+
path.join(
38+
os.homedir(),
39+
"/AppData/Local/1Password/op_sdk_ipc_client.dll",
40+
),
41+
"C:/Program Files/1Password/app/8/op_sdk_ipc_client.dll",
42+
"C:/Program Files (x86)/1Password/app/8/op_sdk_ipc_client.dll",
43+
path.join(
44+
os.homedir(),
45+
"/AppData/Local/1Password/app/8/op_sdk_ipc_client.dll",
46+
),
47+
];
48+
break;
49+
3550
default:
3651
throw new Error(`Unsupported platform: ${platform}`);
3752
}

0 commit comments

Comments
 (0)