UNPKG

719 BJavaScriptView Raw
1// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2// SPDX-License-Identifier: Apache-2.0
3var obj = {};
4export var setState = function (state) {
5 obj.oauth_state = state;
6};
7export var getState = function () {
8 var oauth_state = obj.oauth_state;
9 obj.oauth_state = undefined;
10 return oauth_state;
11};
12export var setPKCE = function (private_key) {
13 obj.ouath_pkce_key = private_key;
14};
15export var getPKCE = function () {
16 var ouath_pkce_key = obj.ouath_pkce_key;
17 obj.ouath_pkce_key = undefined;
18 return ouath_pkce_key;
19};
20export var clearAll = function () {
21 obj.ouath_pkce_key = undefined;
22 obj.oauth_state = undefined;
23};
24//# sourceMappingURL=oauthStorage.native.js.map
\No newline at end of file