angular2-devise-token-auth
Version:
Helper library for working with Devise Token Auth in your Angular 2 applications
22 lines • 723 B
JavaScript
"use strict";
var AuthConfig = (function () {
function AuthConfig(config) {
if (config === void 0) { config = {}; }
this.accessToken = config.accessToken || 'access-token';
this.tokenType = config.tokenType || 'token-type';
this.client = config.client || 'client';
this.expiry = config.expiry || 'expiry';
this.uid = config.uid || 'uid';
this.globalHeaders = config.globalHeaders || [];
this.authHeaders = [
this.tokenType,
this.accessToken,
this.client,
this.expiry,
this.uid
];
}
return AuthConfig;
}());
exports.AuthConfig = AuthConfig;
//# sourceMappingURL=auth.config.js.map