UNPKG

1.35 kBJavaScriptView Raw
1function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
2
3/*
4 * Copyright 2016 Amazon.com,
5 * Inc. or its affiliates. All Rights Reserved.
6 *
7 * Licensed under the Amazon Software License (the "License").
8 * You may not use this file except in compliance with the
9 * License. A copy of the License is located at
10 *
11 * http://aws.amazon.com/asl/
12 *
13 * or in the "license" file accompanying this file. This file is
14 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
15 * CONDITIONS OF ANY KIND, express or implied. See the License
16 * for the specific language governing permissions and
17 * limitations under the License.
18 */
19import CognitoJwtToken from './CognitoJwtToken';
20/** @class */
21
22var CognitoAccessToken = /*#__PURE__*/function (_CognitoJwtToken) {
23 _inheritsLoose(CognitoAccessToken, _CognitoJwtToken);
24
25 /**
26 * Constructs a new CognitoAccessToken object
27 * @param {string=} AccessToken The JWT access token.
28 */
29 function CognitoAccessToken(_temp) {
30 var _ref = _temp === void 0 ? {} : _temp,
31 AccessToken = _ref.AccessToken;
32
33 return _CognitoJwtToken.call(this, AccessToken || '') || this;
34 }
35
36 return CognitoAccessToken;
37}(CognitoJwtToken);
38
39export { CognitoAccessToken as default };
\No newline at end of file