1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | Object.defineProperty(exports, "__esModule", { value: true });
|
15 | exports.setState = function (state) {
|
16 | window.sessionStorage.setItem('oauth_state', state);
|
17 | };
|
18 | exports.getState = function () {
|
19 | var oauth_state = window.sessionStorage.getItem('oauth_state');
|
20 | window.sessionStorage.removeItem('oauth_state');
|
21 | return oauth_state;
|
22 | };
|
23 | exports.setPKCE = function (private_key) {
|
24 | window.sessionStorage.setItem('ouath_pkce_key', private_key);
|
25 | };
|
26 | exports.getPKCE = function () {
|
27 | var ouath_pkce_key = window.sessionStorage.getItem('ouath_pkce_key');
|
28 | window.sessionStorage.removeItem('ouath_pkce_key');
|
29 | return ouath_pkce_key;
|
30 | };
|
31 | exports.clearAll = function () {
|
32 | window.sessionStorage.removeItem('ouath_pkce_key');
|
33 | window.sessionStorage.removeItem('oauth_state');
|
34 | };
|
35 |
|
\ | No newline at end of file |