Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "bf-lib", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "the standard client library for block-5 services", |
@@ -35,3 +35,3 @@ "use strict"; | ||
try { | ||
const user = yield clientAuth.connect(system); | ||
const user = yield clientAuth.connect(baseUrl); | ||
if (!user) { | ||
@@ -38,0 +38,0 @@ throw new Error('Was not able to authenticate the user.'); |
@@ -32,5 +32,5 @@ import { EnumLiteralsOf, IUserEntity } from 'bf-types'; | ||
export interface ClientAuth { | ||
connect(system: System): Promise<Nullable<IUserEntity>> | Nullable<IUserEntity>; | ||
connect(nexusUrl: string): Promise<Nullable<IUserEntity>> | Nullable<IUserEntity>; | ||
reconnect(system: System): Promise<Nullable<IUserEntity>> | Nullable<IUserEntity>; | ||
disconnect(system: System): void; | ||
} |
55239