UNPKG

landstrasse

Version:

Strongly typed WAMP Client for browsers

40 lines 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class AbstractAuthProvider { /** * Creates a new instance. * * @param authId - The username to send to the server * @param authMethod - The authmethod to send to the server */ constructor(authId, authMethod) { Object.defineProperty(this, "_authId", { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, "_authMethod", { enumerable: true, configurable: true, writable: true, value: void 0 }); this._authId = authId; this._authMethod = authMethod; } /** @inheritDoc */ get authId() { return this._authId; } /** @inheritDoc */ get authMethod() { return this._authMethod; } /** @inheritDoc */ computeChallenge(_) { return Promise.reject('Challenge computing is not supported by the auth provider.'); } } exports.default = AbstractAuthProvider; //# sourceMappingURL=AbstractAuthProvider.js.map