@yash101/schwab-api-client
Version:
A TypeScript client library for interacting with the Charles Schwab Brokerage APIs.
27 lines • 728 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppConfig = void 0;
class AppConfig {
clientId;
clientSecret;
redirectUri;
constructor(clientId, clientSecret, redirectUri) {
this.clientId = clientId;
this.clientSecret = clientSecret;
this.redirectUri = redirectUri;
}
getClientId() {
return this.clientId;
}
getClientSecret() {
return this.clientSecret;
}
getRedirectUri() {
return this.redirectUri;
}
getAuthHeader() {
return 'Basic ' + Buffer.from(`${this.clientId}:${this.clientSecret}`).toString('base64');
}
}
exports.AppConfig = AppConfig;
//# sourceMappingURL=appconfig.js.map