@ozdao/prometheus-framework 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.client.cjs +7 -7
- package/dist/auth.client.js +149 -150
- package/package.json +1 -1
- package/src/modules/auth/components/pages/SignIn.vue +7 -12
package/package.json
CHANGED
@@ -159,7 +159,7 @@ const callOnFailure = (error) => {
|
|
159
159
|
};
|
160
160
|
|
161
161
|
const clientId = inject('APPLE_CLIENTID')
|
162
|
-
const redirectURI = inject('
|
162
|
+
const redirectURI = inject('APPLE_REDIRECT_URL')
|
163
163
|
|
164
164
|
const initAppleSignIn = () => {
|
165
165
|
if (!window.AppleID) {
|
@@ -167,18 +167,13 @@ const initAppleSignIn = () => {
|
|
167
167
|
return;
|
168
168
|
}
|
169
169
|
|
170
|
-
let scope = 'email'; // Укажите необходимые scope
|
171
|
-
let state = '123';
|
172
|
-
let usePopup = true; // Использовать попап или нет
|
173
|
-
|
174
170
|
window.AppleID.auth.init({
|
175
|
-
clientId,
|
176
|
-
scope,
|
177
|
-
redirectURI,
|
178
|
-
state,
|
179
|
-
usePopup
|
180
|
-
})
|
181
|
-
|
171
|
+
clientId: clientId,
|
172
|
+
scope: 'name email',
|
173
|
+
redirectURI: redirectURI,
|
174
|
+
state: 'lilylsunisabigsb',
|
175
|
+
usePopup: true,
|
176
|
+
})
|
182
177
|
document.addEventListener('AppleIDSignInOnSuccess', callOnSuccess);
|
183
178
|
document.addEventListener('AppleIDSignInOnFailure', callOnFailure);
|
184
179
|
};
|