Compare commits

..

7 Commits

2 changed files with 7 additions and 2 deletions

View File

@ -8,6 +8,7 @@
"changelogFile": "docs/CHANGELOG.md"
}
],
"@semantic-release/npm",
"@semantic-release/git",
{
"assets": [
@ -15,8 +16,7 @@
"docs/CHANGELOG.md",
"npm-shrinkwrap.json"
]
},
"@semantic-release/npm"
}
],
"branches": [
"master",

View File

@ -39,6 +39,7 @@ export interface ClientOptions {
email?: string;
password?: string;
privateKey?: Uint8Array;
jwt?: string;
}
interface FetchOptions {
@ -62,6 +63,10 @@ export class Client {
throw new Error("Portal url is required");
}
if (options.jwt) {
this.jwtSessionKey = options.jwt;
}
this._options = options;
}