feat: allow using existing jwt
This commit is contained in:
parent
e67ca43306
commit
3784858600
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue