@bagelink/auth 1.6.57 → 1.6.63
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 +18 -18
- package/dist/index.mjs +18 -18
- package/dist/pages/LoginPage.vue.d.ts +12 -12
- package/package.json +1 -1
- package/src/components/auth/LoginForm.vue +6 -6
- 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
|
@@ -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 },
|
|
@@ -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
|
@@ -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 },
|
|
@@ -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,
|
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"
|