@bagelink/auth 1.6.61 → 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 CHANGED
@@ -16,10 +16,7 @@ npm install @bagelink/auth
16
16
  import { initAuth } from '@bagelink/auth'
17
17
 
18
18
  initAuth({
19
- apiEndpoint: 'https://api.your-app.com',
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
- apiEndpoint: string // Required: Your API endpoint
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: true },
401
- google: { type: Boolean, default: true },
402
- microsoft: { type: Boolean, default: true },
403
- apple: { type: Boolean, default: true },
404
- okta: { type: Boolean, default: true },
405
- facebook: { type: Boolean, default: true },
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
- showGithub: { type: Boolean, default: true },
1272
- showGoogle: { type: Boolean, default: true },
1273
- showMicrosoft: { type: Boolean, default: true },
1274
- showApple: { type: Boolean, default: true },
1275
- showOkta: { type: Boolean, default: true },
1276
- showFacebook: { type: Boolean, default: true },
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.showGithub,
1304
- google: _ctx.showGoogle,
1305
- microsoft: _ctx.showMicrosoft,
1306
- apple: _ctx.showApple,
1307
- okta: _ctx.showOkta,
1308
- facebook: _ctx.showFacebook,
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: true },
399
- google: { type: Boolean, default: true },
400
- microsoft: { type: Boolean, default: true },
401
- apple: { type: Boolean, default: true },
402
- okta: { type: Boolean, default: true },
403
- facebook: { type: Boolean, default: true },
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
- showGithub: { type: Boolean, default: true },
1270
- showGoogle: { type: Boolean, default: true },
1271
- showMicrosoft: { type: Boolean, default: true },
1272
- showApple: { type: Boolean, default: true },
1273
- showOkta: { type: Boolean, default: true },
1274
- showFacebook: { type: Boolean, default: true },
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.showGithub,
1302
- google: _ctx.showGoogle,
1303
- microsoft: _ctx.showMicrosoft,
1304
- apple: _ctx.showApple,
1305
- okta: _ctx.showOkta,
1306
- facebook: _ctx.showFacebook,
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
- showGithub?: boolean;
7
- showGoogle?: boolean;
8
- showMicrosoft?: boolean;
9
- showApple?: boolean;
10
- showOkta?: boolean;
11
- showFacebook?: boolean;
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/auth",
3
3
  "type": "module",
4
- "version": "1.6.61",
4
+ "version": "1.6.63",
5
5
  "description": "Bagelink auth package",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
@@ -43,12 +43,12 @@ const props = withDefaults(defineProps<Props>(), {
43
43
  hideRegularLogin: false,
44
44
  showForgotPassword: true,
45
45
  showSignupButton: true,
46
- github: true,
47
- google: true,
48
- microsoft: true,
49
- apple: true,
50
- okta: true,
51
- facebook: true,
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,
@@ -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
- showGithub?: boolean
12
- showGoogle?: boolean
13
- showMicrosoft?: boolean
14
- showApple?: boolean
15
- showOkta?: boolean
16
- showFacebook?: boolean
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
- showGithub: true,
31
- showGoogle: true,
32
- showMicrosoft: true,
33
- showApple: true,
34
- showOkta: true,
35
- showFacebook: true,
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="showGithub" :google="showGoogle" :microsoft="showMicrosoft"
61
- :apple="showApple" :okta="showOkta" :facebook="showFacebook" :sso-outline="ssoOutline"
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"