@bagelink/auth 1.6.61 → 1.6.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -7
- package/dist/index.cjs +30 -30
- package/dist/index.mjs +30 -30
- package/dist/pages/LoginPage.vue.d.ts +12 -12
- package/package.json +1 -1
- package/src/components/auth/LoginForm.vue +18 -20
- package/src/components/auth/ResetPasswordForm.vue +8 -2
- package/src/components/auth/SignupForm.vue +4 -1
- package/src/pages/LoginPage.vue +14 -14
package/README.md
CHANGED
|
@@ -16,10 +16,7 @@ npm install @bagelink/auth
|
|
|
16
16
|
import { initAuth } from '@bagelink/auth'
|
|
17
17
|
|
|
18
18
|
initAuth({
|
|
19
|
-
|
|
20
|
-
storageKey: 'auth_token',
|
|
21
|
-
// Optional: custom storage
|
|
22
|
-
storage: localStorage
|
|
19
|
+
baseURL: 'https://api.your-app.com'
|
|
23
20
|
})
|
|
24
21
|
```
|
|
25
22
|
|
|
@@ -209,9 +206,7 @@ Initialize the auth module:
|
|
|
209
206
|
|
|
210
207
|
```typescript
|
|
211
208
|
initAuth({
|
|
212
|
-
|
|
213
|
-
storageKey?: string // Optional: Storage key (default: 'auth_token')
|
|
214
|
-
storage?: Storage // Optional: Storage mechanism (default: localStorage)
|
|
209
|
+
baseURL: string // Required: Your API endpoint
|
|
215
210
|
})
|
|
216
211
|
```
|
|
217
212
|
|
package/dist/index.cjs
CHANGED
|
@@ -388,7 +388,7 @@ const _hoisted_3$2 = {
|
|
|
388
388
|
};
|
|
389
389
|
const _hoisted_4$2 = { class: "txt-center my-05" };
|
|
390
390
|
const _hoisted_5$2 = {
|
|
391
|
-
key:
|
|
391
|
+
key: 1,
|
|
392
392
|
class: "txt-center color-red txt-12 mt-1"
|
|
393
393
|
};
|
|
394
394
|
const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -397,12 +397,12 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
397
397
|
hideRegularLogin: { type: Boolean, default: false },
|
|
398
398
|
showForgotPassword: { type: Boolean, default: true },
|
|
399
399
|
showSignupButton: { type: Boolean, default: true },
|
|
400
|
-
github: { type: Boolean, default:
|
|
401
|
-
google: { type: Boolean, default:
|
|
402
|
-
microsoft: { type: Boolean, default:
|
|
403
|
-
apple: { type: Boolean, default:
|
|
404
|
-
okta: { type: Boolean, default:
|
|
405
|
-
facebook: { type: Boolean, default:
|
|
400
|
+
github: { type: Boolean, default: false },
|
|
401
|
+
google: { type: Boolean, default: false },
|
|
402
|
+
microsoft: { type: Boolean, default: false },
|
|
403
|
+
apple: { type: Boolean, default: false },
|
|
404
|
+
okta: { type: Boolean, default: false },
|
|
405
|
+
facebook: { type: Boolean, default: false },
|
|
406
406
|
ssoOutline: { type: Boolean, default: true },
|
|
407
407
|
ssoShowValue: { type: Boolean, default: true },
|
|
408
408
|
ssoSize: { default: void 0 },
|
|
@@ -439,19 +439,19 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
439
439
|
facebookButton: "התחברות עם Facebook"
|
|
440
440
|
};
|
|
441
441
|
const englishDefaults = {
|
|
442
|
-
title: "Login
|
|
442
|
+
title: "Login",
|
|
443
443
|
emailLabel: "Email",
|
|
444
444
|
passwordLabel: "Password",
|
|
445
|
-
forgotPassword: "Forgot Password
|
|
446
|
-
loginButton: "Login
|
|
445
|
+
forgotPassword: "Forgot Password",
|
|
446
|
+
loginButton: "Login",
|
|
447
447
|
signupButton: "Create Account",
|
|
448
448
|
orText: "or",
|
|
449
|
-
githubButton: "
|
|
450
|
-
googleButton: "
|
|
451
|
-
microsoftButton: "
|
|
452
|
-
appleButton: "
|
|
453
|
-
oktaButton: "
|
|
454
|
-
facebookButton: "
|
|
449
|
+
githubButton: "Continue with GitHub",
|
|
450
|
+
googleButton: "Continue with Google",
|
|
451
|
+
microsoftButton: "Continue with Microsoft",
|
|
452
|
+
appleButton: "Continue with Apple",
|
|
453
|
+
oktaButton: "Continue with Okta",
|
|
454
|
+
facebookButton: "Continue with Facebook"
|
|
455
455
|
};
|
|
456
456
|
const defaults = props.useHebrewDefaults ? hebrewDefaults : englishDefaults;
|
|
457
457
|
return {
|
|
@@ -547,6 +547,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
547
547
|
vue.createElementVNode("p", _hoisted_4$2, vue.toDisplayString(texts.value.orText), 1),
|
|
548
548
|
_cache[11] || (_cache[11] = vue.createElementVNode("div", { class: "line" }, null, -1))
|
|
549
549
|
])) : vue.createCommentVNode("", true),
|
|
550
|
+
error.value ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_5$2, vue.toDisplayString(error.value), 1)) : vue.createCommentVNode("", true),
|
|
550
551
|
vue.createElementVNode("div", {
|
|
551
552
|
class: vue.normalizeClass(["gap-05", { "grid grid-wrap-1": props.ssoShowValue, "flex justify-content-center gap-05 flex-wrap": !props.ssoShowValue }])
|
|
552
553
|
}, [
|
|
@@ -635,8 +636,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
635
636
|
[_directive_tooltip, !props.ssoShowValue ? texts.value.facebookButton : void 0]
|
|
636
637
|
]) : vue.createCommentVNode("", true)
|
|
637
638
|
], 2)
|
|
638
|
-
])) : vue.createCommentVNode("", true)
|
|
639
|
-
error.value ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_5$2, vue.toDisplayString(error.value), 1)) : vue.createCommentVNode("", true)
|
|
639
|
+
])) : vue.createCommentVNode("", true)
|
|
640
640
|
], 34);
|
|
641
641
|
};
|
|
642
642
|
}
|
|
@@ -1268,12 +1268,12 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1268
1268
|
__name: "LoginPage",
|
|
1269
1269
|
props: {
|
|
1270
1270
|
texts: {},
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1271
|
+
github: { type: Boolean, default: true },
|
|
1272
|
+
google: { type: Boolean, default: true },
|
|
1273
|
+
microsoft: { type: Boolean, default: true },
|
|
1274
|
+
apple: { type: Boolean, default: true },
|
|
1275
|
+
okta: { type: Boolean, default: true },
|
|
1276
|
+
facebook: { type: Boolean, default: true },
|
|
1277
1277
|
ssoOutline: { type: Boolean, default: true },
|
|
1278
1278
|
ssoShowValue: { type: Boolean, default: true },
|
|
1279
1279
|
ssoBrandBackground: { type: Boolean, default: true },
|
|
@@ -1300,12 +1300,12 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1300
1300
|
default: vue.withCtx(() => [
|
|
1301
1301
|
vue.createVNode(_sfc_main$7, {
|
|
1302
1302
|
texts: _ctx.texts,
|
|
1303
|
-
github: _ctx.
|
|
1304
|
-
google: _ctx.
|
|
1305
|
-
microsoft: _ctx.
|
|
1306
|
-
apple: _ctx.
|
|
1307
|
-
okta: _ctx.
|
|
1308
|
-
facebook: _ctx.
|
|
1303
|
+
github: _ctx.github,
|
|
1304
|
+
google: _ctx.google,
|
|
1305
|
+
microsoft: _ctx.microsoft,
|
|
1306
|
+
apple: _ctx.apple,
|
|
1307
|
+
okta: _ctx.okta,
|
|
1308
|
+
facebook: _ctx.facebook,
|
|
1309
1309
|
"sso-outline": _ctx.ssoOutline,
|
|
1310
1310
|
"sso-show-value": _ctx.ssoShowValue,
|
|
1311
1311
|
"sso-brand-background": _ctx.ssoBrandBackground,
|
package/dist/index.mjs
CHANGED
|
@@ -386,7 +386,7 @@ const _hoisted_3$2 = {
|
|
|
386
386
|
};
|
|
387
387
|
const _hoisted_4$2 = { class: "txt-center my-05" };
|
|
388
388
|
const _hoisted_5$2 = {
|
|
389
|
-
key:
|
|
389
|
+
key: 1,
|
|
390
390
|
class: "txt-center color-red txt-12 mt-1"
|
|
391
391
|
};
|
|
392
392
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
@@ -395,12 +395,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
395
395
|
hideRegularLogin: { type: Boolean, default: false },
|
|
396
396
|
showForgotPassword: { type: Boolean, default: true },
|
|
397
397
|
showSignupButton: { type: Boolean, default: true },
|
|
398
|
-
github: { type: Boolean, default:
|
|
399
|
-
google: { type: Boolean, default:
|
|
400
|
-
microsoft: { type: Boolean, default:
|
|
401
|
-
apple: { type: Boolean, default:
|
|
402
|
-
okta: { type: Boolean, default:
|
|
403
|
-
facebook: { type: Boolean, default:
|
|
398
|
+
github: { type: Boolean, default: false },
|
|
399
|
+
google: { type: Boolean, default: false },
|
|
400
|
+
microsoft: { type: Boolean, default: false },
|
|
401
|
+
apple: { type: Boolean, default: false },
|
|
402
|
+
okta: { type: Boolean, default: false },
|
|
403
|
+
facebook: { type: Boolean, default: false },
|
|
404
404
|
ssoOutline: { type: Boolean, default: true },
|
|
405
405
|
ssoShowValue: { type: Boolean, default: true },
|
|
406
406
|
ssoSize: { default: void 0 },
|
|
@@ -437,19 +437,19 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
437
437
|
facebookButton: "התחברות עם Facebook"
|
|
438
438
|
};
|
|
439
439
|
const englishDefaults = {
|
|
440
|
-
title: "Login
|
|
440
|
+
title: "Login",
|
|
441
441
|
emailLabel: "Email",
|
|
442
442
|
passwordLabel: "Password",
|
|
443
|
-
forgotPassword: "Forgot Password
|
|
444
|
-
loginButton: "Login
|
|
443
|
+
forgotPassword: "Forgot Password",
|
|
444
|
+
loginButton: "Login",
|
|
445
445
|
signupButton: "Create Account",
|
|
446
446
|
orText: "or",
|
|
447
|
-
githubButton: "
|
|
448
|
-
googleButton: "
|
|
449
|
-
microsoftButton: "
|
|
450
|
-
appleButton: "
|
|
451
|
-
oktaButton: "
|
|
452
|
-
facebookButton: "
|
|
447
|
+
githubButton: "Continue with GitHub",
|
|
448
|
+
googleButton: "Continue with Google",
|
|
449
|
+
microsoftButton: "Continue with Microsoft",
|
|
450
|
+
appleButton: "Continue with Apple",
|
|
451
|
+
oktaButton: "Continue with Okta",
|
|
452
|
+
facebookButton: "Continue with Facebook"
|
|
453
453
|
};
|
|
454
454
|
const defaults = props.useHebrewDefaults ? hebrewDefaults : englishDefaults;
|
|
455
455
|
return {
|
|
@@ -545,6 +545,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
545
545
|
createElementVNode("p", _hoisted_4$2, toDisplayString(texts.value.orText), 1),
|
|
546
546
|
_cache[11] || (_cache[11] = createElementVNode("div", { class: "line" }, null, -1))
|
|
547
547
|
])) : createCommentVNode("", true),
|
|
548
|
+
error.value ? (openBlock(), createElementBlock("p", _hoisted_5$2, toDisplayString(error.value), 1)) : createCommentVNode("", true),
|
|
548
549
|
createElementVNode("div", {
|
|
549
550
|
class: normalizeClass(["gap-05", { "grid grid-wrap-1": props.ssoShowValue, "flex justify-content-center gap-05 flex-wrap": !props.ssoShowValue }])
|
|
550
551
|
}, [
|
|
@@ -633,8 +634,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
633
634
|
[_directive_tooltip, !props.ssoShowValue ? texts.value.facebookButton : void 0]
|
|
634
635
|
]) : createCommentVNode("", true)
|
|
635
636
|
], 2)
|
|
636
|
-
])) : createCommentVNode("", true)
|
|
637
|
-
error.value ? (openBlock(), createElementBlock("p", _hoisted_5$2, toDisplayString(error.value), 1)) : createCommentVNode("", true)
|
|
637
|
+
])) : createCommentVNode("", true)
|
|
638
638
|
], 34);
|
|
639
639
|
};
|
|
640
640
|
}
|
|
@@ -1266,12 +1266,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1266
1266
|
__name: "LoginPage",
|
|
1267
1267
|
props: {
|
|
1268
1268
|
texts: {},
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1269
|
+
github: { type: Boolean, default: true },
|
|
1270
|
+
google: { type: Boolean, default: true },
|
|
1271
|
+
microsoft: { type: Boolean, default: true },
|
|
1272
|
+
apple: { type: Boolean, default: true },
|
|
1273
|
+
okta: { type: Boolean, default: true },
|
|
1274
|
+
facebook: { type: Boolean, default: true },
|
|
1275
1275
|
ssoOutline: { type: Boolean, default: true },
|
|
1276
1276
|
ssoShowValue: { type: Boolean, default: true },
|
|
1277
1277
|
ssoBrandBackground: { type: Boolean, default: true },
|
|
@@ -1298,12 +1298,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1298
1298
|
default: withCtx(() => [
|
|
1299
1299
|
createVNode(_sfc_main$7, {
|
|
1300
1300
|
texts: _ctx.texts,
|
|
1301
|
-
github: _ctx.
|
|
1302
|
-
google: _ctx.
|
|
1303
|
-
microsoft: _ctx.
|
|
1304
|
-
apple: _ctx.
|
|
1305
|
-
okta: _ctx.
|
|
1306
|
-
facebook: _ctx.
|
|
1301
|
+
github: _ctx.github,
|
|
1302
|
+
google: _ctx.google,
|
|
1303
|
+
microsoft: _ctx.microsoft,
|
|
1304
|
+
apple: _ctx.apple,
|
|
1305
|
+
okta: _ctx.okta,
|
|
1306
|
+
facebook: _ctx.facebook,
|
|
1307
1307
|
"sso-outline": _ctx.ssoOutline,
|
|
1308
1308
|
"sso-show-value": _ctx.ssoShowValue,
|
|
1309
1309
|
"sso-brand-background": _ctx.ssoBrandBackground,
|
|
@@ -3,12 +3,12 @@ interface Props {
|
|
|
3
3
|
/** Custom texts for the login form */
|
|
4
4
|
texts?: Partial<LoginTexts>;
|
|
5
5
|
/** Show/hide specific SSO providers */
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
github?: boolean;
|
|
7
|
+
google?: boolean;
|
|
8
|
+
microsoft?: boolean;
|
|
9
|
+
apple?: boolean;
|
|
10
|
+
okta?: boolean;
|
|
11
|
+
facebook?: boolean;
|
|
12
12
|
/** SSO button styling */
|
|
13
13
|
ssoOutline?: boolean;
|
|
14
14
|
ssoShowValue?: boolean;
|
|
@@ -21,6 +21,12 @@ interface Props {
|
|
|
21
21
|
cardShadow?: boolean;
|
|
22
22
|
}
|
|
23
23
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
24
|
+
google: boolean;
|
|
25
|
+
microsoft: boolean;
|
|
26
|
+
github: boolean;
|
|
27
|
+
okta: boolean;
|
|
28
|
+
apple: boolean;
|
|
29
|
+
facebook: boolean;
|
|
24
30
|
showForgotPassword: boolean;
|
|
25
31
|
showSignupButton: boolean;
|
|
26
32
|
ssoOutline: boolean;
|
|
@@ -28,11 +34,5 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
28
34
|
ssoBrandBackground: boolean;
|
|
29
35
|
cardWidth: string;
|
|
30
36
|
cardShadow: boolean;
|
|
31
|
-
showGithub: boolean;
|
|
32
|
-
showGoogle: boolean;
|
|
33
|
-
showMicrosoft: boolean;
|
|
34
|
-
showApple: boolean;
|
|
35
|
-
showOkta: boolean;
|
|
36
|
-
showFacebook: boolean;
|
|
37
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
38
38
|
export default _default;
|
package/package.json
CHANGED
|
@@ -43,12 +43,12 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
43
43
|
hideRegularLogin: false,
|
|
44
44
|
showForgotPassword: true,
|
|
45
45
|
showSignupButton: true,
|
|
46
|
-
github:
|
|
47
|
-
google:
|
|
48
|
-
microsoft:
|
|
49
|
-
apple:
|
|
50
|
-
okta:
|
|
51
|
-
facebook:
|
|
46
|
+
github: false,
|
|
47
|
+
google: false,
|
|
48
|
+
microsoft: false,
|
|
49
|
+
apple: false,
|
|
50
|
+
okta: false,
|
|
51
|
+
facebook: false,
|
|
52
52
|
ssoOutline: true,
|
|
53
53
|
ssoShowValue: true,
|
|
54
54
|
ssoSize: undefined,
|
|
@@ -90,19 +90,19 @@ const texts = computed(() => {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
const englishDefaults = {
|
|
93
|
-
title: 'Login
|
|
93
|
+
title: 'Login',
|
|
94
94
|
emailLabel: 'Email',
|
|
95
95
|
passwordLabel: 'Password',
|
|
96
|
-
forgotPassword: 'Forgot Password
|
|
97
|
-
loginButton: 'Login
|
|
96
|
+
forgotPassword: 'Forgot Password',
|
|
97
|
+
loginButton: 'Login',
|
|
98
98
|
signupButton: 'Create Account',
|
|
99
99
|
orText: 'or',
|
|
100
|
-
githubButton: '
|
|
101
|
-
googleButton: '
|
|
102
|
-
microsoftButton: '
|
|
103
|
-
appleButton: '
|
|
104
|
-
oktaButton: '
|
|
105
|
-
facebookButton: '
|
|
100
|
+
githubButton: 'Continue with GitHub',
|
|
101
|
+
googleButton: 'Continue with Google',
|
|
102
|
+
microsoftButton: 'Continue with Microsoft',
|
|
103
|
+
appleButton: 'Continue with Apple',
|
|
104
|
+
oktaButton: 'Continue with Okta',
|
|
105
|
+
facebookButton: 'Continue with Facebook'
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
const defaults = props.useHebrewDefaults ? hebrewDefaults : englishDefaults
|
|
@@ -188,7 +188,9 @@ async function handleLogin() {
|
|
|
188
188
|
</p>
|
|
189
189
|
<div class="line" />
|
|
190
190
|
</div>
|
|
191
|
-
|
|
191
|
+
<p v-if="error" class="txt-center color-red txt-12 mt-1">
|
|
192
|
+
{{ error }}
|
|
193
|
+
</p>
|
|
192
194
|
<div
|
|
193
195
|
class="gap-05"
|
|
194
196
|
:class="{ 'grid grid-wrap-1': props.ssoShowValue, 'flex justify-content-center gap-05 flex-wrap': !props.ssoShowValue }"
|
|
@@ -249,9 +251,5 @@ async function handleLogin() {
|
|
|
249
251
|
/>
|
|
250
252
|
</div>
|
|
251
253
|
</div>
|
|
252
|
-
|
|
253
|
-
<p v-if="error" class="txt-center color-red txt-12 mt-1">
|
|
254
|
-
{{ error }}
|
|
255
|
-
</p>
|
|
256
254
|
</form>
|
|
257
255
|
</template>
|
|
@@ -137,10 +137,16 @@ async function handleResetPassword() {
|
|
|
137
137
|
<h1 class="txt20 bold txt-center mb-1">
|
|
138
138
|
{{ texts.title }}
|
|
139
139
|
</h1>
|
|
140
|
-
<PasswordInput
|
|
140
|
+
<PasswordInput
|
|
141
|
+
v-model="newPassword" class="mb-05" :label="texts.newPasswordLabel"
|
|
142
|
+
autocomplete="new-password"
|
|
143
|
+
/>
|
|
141
144
|
<PasswordInput v-model="confirmPassword" :label="texts.confirmPasswordLabel" autocomplete="new-password" />
|
|
142
145
|
<Btn type="submit" class="w-100 mt-2" :value="texts.submitButton" />
|
|
143
|
-
<Btn
|
|
146
|
+
<Btn
|
|
147
|
+
thin flat class="txt-12 mt-075 underline block" :value="texts.backToLogin"
|
|
148
|
+
@click="$emit('switchForm', 'login')"
|
|
149
|
+
/>
|
|
144
150
|
<p v-if="error" class="txt-center color-red txt-12 mt-1" v-text="error" />
|
|
145
151
|
</form>
|
|
146
152
|
</template>
|
|
@@ -218,7 +218,10 @@ async function handleSignup() {
|
|
|
218
218
|
<PasswordInput v-model="form.password" class="mb-05" :label="texts.passwordLabel" />
|
|
219
219
|
<PasswordInput v-model="form.confirmPassword" :label="texts.confirmPasswordLabel" />
|
|
220
220
|
<Btn class="w-100 mt-2" :value="texts.signupButton" type="submit" />
|
|
221
|
-
<Btn
|
|
221
|
+
<Btn
|
|
222
|
+
thin flat class="txt-12 mt-075 underline block" :value="texts.alreadyHaveAccount"
|
|
223
|
+
@click="$emit('switchForm', 'login')"
|
|
224
|
+
/>
|
|
222
225
|
<p v-if="error" class="txt-center color-red txt-12 mt-1" v-text="error" />
|
|
223
226
|
</form>
|
|
224
227
|
</template>
|
package/src/pages/LoginPage.vue
CHANGED
|
@@ -8,12 +8,12 @@ interface Props {
|
|
|
8
8
|
/** Custom texts for the login form */
|
|
9
9
|
texts?: Partial<LoginTexts>
|
|
10
10
|
/** Show/hide specific SSO providers */
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
github?: boolean
|
|
12
|
+
google?: boolean
|
|
13
|
+
microsoft?: boolean
|
|
14
|
+
apple?: boolean
|
|
15
|
+
okta?: boolean
|
|
16
|
+
facebook?: boolean
|
|
17
17
|
/** SSO button styling */
|
|
18
18
|
ssoOutline?: boolean
|
|
19
19
|
ssoShowValue?: boolean
|
|
@@ -27,12 +27,12 @@ interface Props {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
const props = withDefaults(defineProps<Props>(), {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
github: true,
|
|
31
|
+
google: true,
|
|
32
|
+
microsoft: true,
|
|
33
|
+
apple: true,
|
|
34
|
+
okta: true,
|
|
35
|
+
facebook: true,
|
|
36
36
|
ssoOutline: true,
|
|
37
37
|
ssoShowValue: true,
|
|
38
38
|
ssoBrandBackground: true,
|
|
@@ -57,8 +57,8 @@ function switchForm(form: string) {
|
|
|
57
57
|
<div class="flex justify-content-center align-items-center min-vh-100 px-1 py-2">
|
|
58
58
|
<Card :class="{ shadow: cardShadow }" :style="{ width: cardWidth, maxWidth: '100%' }" class="p-2">
|
|
59
59
|
<LoginForm
|
|
60
|
-
:texts="texts" :github="
|
|
61
|
-
:apple="
|
|
60
|
+
:texts="texts" :github="github" :google="google" :microsoft="microsoft"
|
|
61
|
+
:apple="apple" :okta="okta" :facebook="facebook" :sso-outline="ssoOutline"
|
|
62
62
|
:sso-show-value="ssoShowValue" :sso-brand-background="ssoBrandBackground"
|
|
63
63
|
:show-forgot-password="showForgotPassword" :show-signup-button="showSignupButton"
|
|
64
64
|
@switch-form="switchForm"
|