Skip to content

Commit 645f470

Browse files
committed
Fix package method calls; Comment out domain from auth config
1 parent a506284 commit 645f470

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
title: "Authorize Frontify"
7373
};
7474
const AUTHORIZATION_CONFIG = {
75-
domain: 'weare.frontify.com',
75+
// domain: 'weare.frontify.com',
7676
clientId: 'client-65yw8hnekdg4mssd',
7777
scopes: ["basic:read", "finder:read", "account:read"],
7878
};
@@ -83,7 +83,7 @@
8383
function authorizeAction() {
8484
// handle domain window
8585
if (!token) {
86-
FrontifyAuthenticator.authorize(AUTHORIZATION_CONFIG, POPUP_CONFIG).then(res => {
86+
authorize(AUTHORIZATION_CONFIG, POPUP_CONFIG).then(res => {
8787
if (res) {
8888
domain = res.domain;
8989
token = res;
@@ -102,7 +102,7 @@
102102
return;
103103
}
104104

105-
FrontifyAuthenticator.revoke(token).then(res => {
105+
revoke(token).then(res => {
106106
token = null;
107107
delete(AUTHORIZATION_CONFIG.domain);
108108
});
@@ -113,7 +113,7 @@
113113
return;
114114
}
115115

116-
FrontifyAuthenticator.refresh(token).then(res => {
116+
refresh(token).then(res => {
117117
token = res;
118118
});
119119
}

0 commit comments

Comments
 (0)