@alfabit/keycloak 0.0.19 → 0.0.20

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alfabit/keycloak",
3
3
  "private": false,
4
- "version": "0.0.19",
4
+ "version": "0.0.20",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
7
7
  "main": "src/index.ts",
@@ -1,5 +1,3 @@
1
- // export * from './public';
2
-
3
1
  import { REF_KEY, WALLET_API_HOST } from '@alfabit/constants';
4
2
  import { getToken } from '../../../composables';
5
3
 
@@ -22,7 +20,7 @@ export const postWebLogin = async () => {
22
20
  const res = await fetch(`${WALLET_API_HOST}/public/web/login/`, params);
23
21
 
24
22
  if (!res.ok) {
25
- throw new Error(`HTTP error: ${res.status}`);
23
+ throw new Error(`postWebLogin /public/web/login/: HTTP error: ${res.status}`);
26
24
  }
27
25
 
28
26
  const data = await res.json();
@@ -1 +0,0 @@
1
- export * from './public';
@@ -1 +0,0 @@
1
- // export * from './post.web-login';
@@ -1,12 +0,0 @@
1
- // import { REF_KEY } from '@alfabit/constants';
2
- // import api from '../../../client';
3
-
4
- // export const postWebLogin = async () => {
5
- // if (typeof window === 'undefined') return;
6
- // const referral_token = localStorage.getItem(REF_KEY) ?? null;
7
- // const { data: data_1 } = await api.public.loginPublicWebLoginPost({
8
- // referral_token,
9
- // });
10
- // if (referral_token) localStorage.removeItem(REF_KEY);
11
- // return data_1;
12
- // };