@bagelink/auth 1.6.77 → 1.7.3

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/dist/index.cjs CHANGED
@@ -1905,7 +1905,7 @@ function accountToUser(account) {
1905
1905
  let authApi = null;
1906
1906
  let eventEmitter = null;
1907
1907
  const accountInfo = vue.ref(null);
1908
- function initAuth(params = { baseURL: "/api" }) {
1908
+ function initAuth(params) {
1909
1909
  if (authApi === null) {
1910
1910
  authApi = new AuthApi(params.baseURL);
1911
1911
  }
package/dist/index.mjs CHANGED
@@ -1903,7 +1903,7 @@ function accountToUser(account) {
1903
1903
  let authApi = null;
1904
1904
  let eventEmitter = null;
1905
1905
  const accountInfo = ref(null);
1906
- function initAuth(params = { baseURL: "/api" }) {
1906
+ function initAuth(params) {
1907
1907
  if (authApi === null) {
1908
1908
  authApi = new AuthApi(params.baseURL);
1909
1909
  }
package/dist/useAuth.d.ts CHANGED
@@ -3,7 +3,7 @@ import { AccountInfo, User, NewUser, UpdatePasswordForm, UpdateAccountRequest, A
3
3
  interface InitParams {
4
4
  baseURL: string;
5
5
  }
6
- export declare function initAuth(params?: InitParams): {
6
+ export declare function initAuth(params: InitParams): {
7
7
  on<K extends AuthState>(event: K, handler: AuthEventMap[K]): void;
8
8
  off<K extends AuthState>(event: K, handler: AuthEventMap[K]): void;
9
9
  removeAllListeners<K extends AuthState>(event?: K): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/auth",
3
3
  "type": "module",
4
- "version": "1.6.77",
4
+ "version": "1.7.3",
5
5
  "description": "Bagelink auth package",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
package/src/useAuth.ts CHANGED
@@ -27,7 +27,7 @@ interface InitParams {
27
27
  }
28
28
 
29
29
  // Initialize auth
30
- export function initAuth(params: InitParams = { baseURL: '/api' }) {
30
+ export function initAuth(params: InitParams) {
31
31
  if (authApi === null) {
32
32
  authApi = new AuthApi(params.baseURL)
33
33
  }