UNPKG

886 BJavaScriptView Raw
1/*
2 * Copyright 2016 Amazon.com,
3 * Inc. or its affiliates. All Rights Reserved.
4 *
5 * Licensed under the Amazon Software License (the "License").
6 * You may not use this file except in compliance with the
7 * License. A copy of the License is located at
8 *
9 * http://aws.amazon.com/asl/
10 *
11 * or in the "license" file accompanying this file. This file is
12 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 * CONDITIONS OF ANY KIND, express or implied. See the License
14 * for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18import CognitoJwtToken from './CognitoJwtToken';
19
20/** @class */
21export default class CognitoAccessToken extends CognitoJwtToken {
22 /**
23 * Constructs a new CognitoAccessToken object
24 * @param {string=} AccessToken The JWT access token.
25 */
26 constructor({ AccessToken } = {}) {
27 super(AccessToken || '');
28 }
29}