Compare commits

..

7 Commits

2 changed files with 7 additions and 2 deletions

View File

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

View File

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