UNPKG

1.25 kBJavaScriptView Raw
1"use strict";
2/*
3 * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
6 * the License. A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0/
9 *
10 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
12 * and limitations under the License.
13 */
14Object.defineProperty(exports, "__esModule", { value: true });
15var obj = {};
16exports.setState = function (state) {
17 obj.oauth_state = state;
18};
19exports.getState = function () {
20 var oauth_state = obj.oauth_state;
21 obj.oauth_state = undefined;
22 return oauth_state;
23};
24exports.setPKCE = function (private_key) {
25 obj.ouath_pkce_key = private_key;
26};
27exports.getPKCE = function () {
28 var ouath_pkce_key = obj.ouath_pkce_key;
29 obj.ouath_pkce_key = undefined;
30 return ouath_pkce_key;
31};
32exports.clearAll = function () {
33 obj.ouath_pkce_key = undefined;
34 obj.oauth_state = undefined;
35};
36//# sourceMappingURL=oauthStorage.native.js.map
\No newline at end of file