1 |
|
2 |
|
3 | var obj = {};
|
4 | export var setState = function (state) {
|
5 | obj.oauth_state = state;
|
6 | };
|
7 | export var getState = function () {
|
8 | var oauth_state = obj.oauth_state;
|
9 | obj.oauth_state = undefined;
|
10 | return oauth_state;
|
11 | };
|
12 | export var setPKCE = function (private_key) {
|
13 | obj.ouath_pkce_key = private_key;
|
14 | };
|
15 | export var getPKCE = function () {
|
16 | var ouath_pkce_key = obj.ouath_pkce_key;
|
17 | obj.ouath_pkce_key = undefined;
|
18 | return ouath_pkce_key;
|
19 | };
|
20 | export var clearAll = function () {
|
21 | obj.ouath_pkce_key = undefined;
|
22 | obj.oauth_state = undefined;
|
23 | };
|
24 |
|
\ | No newline at end of file |