Skip to content

Commit

Permalink
fix: update 1Password client version from 637 to 945
Browse files Browse the repository at this point in the history
The 1Password client version 637 has been deprecated.  This updates the
client version in the library to 945 so that it will continue to work.

fixes: [issue 7](privicy#7)
  • Loading branch information
greenkiwi committed Jan 7, 2021
1 parent caefe2c commit 896b09e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const g = "05";

export const device: Device = {
clientName: "1Password for Web",
clientVersion: "637",
clientVersion: "945",
model: "73.0.3683.103",
name: "Chrome",
osName: "MacOSX",
Expand Down
2 changes: 1 addition & 1 deletion src/services/Onepassword.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class Onepassword {
const message = {
sessionID: this.session.id,
clientVerifyHash,
client: "1Password for Web/637",
client: "1Password for Web/945",
device: this.device
};
const { serverVerifyHash } = await this.requestService.secureRequest(
Expand Down
2 changes: 1 addition & 1 deletion src/services/Request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class {
): Promise<any> {
headers = {
"x-requested-with": "XMLHttpRequest",
"x-agilebits-client": "1Password for Web/637",
"x-agilebits-client": "1Password for Web/945",
"User-Agent":
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36",
...(method !== "GET" && { "Content-Type": "application/json" }),
Expand Down

0 comments on commit 896b09e

Please sign in to comment.