@odynn/awayz-core 0.6.25 → 0.6.26

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.
@@ -5,8 +5,8 @@ import { a as r } from "../keys-BcBfU51M.js";
5
5
  import { useEffect as a } from "react";
6
6
  import { setCustomBaseUrl as l, setBaseUrl as i } from "../configs/baseUrl.js";
7
7
  import { defaultAwayzConfig as u } from "../configs/defaultAwayzConfig.js";
8
- import { AwayzContext as p } from "../context/AwayzContext.js";
9
- import { useAwayzAuth as d } from "../hooks/useAwayzAuth/useAwayzAuth.js";
8
+ import { AwayzContext as d } from "../context/AwayzContext.js";
9
+ import { useAwayzAuth as p } from "../hooks/useAwayzAuth/useAwayzAuth.js";
10
10
  import { awayzClient as h } from "../configs/awayzClient.js";
11
11
  import "../AccountService-B9DbWoCe.js";
12
12
  import '../assets/_styles4.css';import '../assets/_styles3.css';import '../assets/_styles2.css';import '../assets/_styles.css';import '../assets/_styles5.css';/* empty css */
@@ -16,12 +16,13 @@ import "react-i18next";
16
16
  /* empty css */
17
17
  /* empty css */
18
18
  import "../services/noRetryInstance.js";
19
- const b = ({ children: o, config: e }) => {
20
- const s = d({
19
+ const P = ({ children: o, config: e }) => {
20
+ const s = p({
21
21
  authFlow: e.authFlow,
22
22
  onSuccess: e.onAuthSuccess,
23
23
  onError: e.onAuthFailure,
24
- trustedOrigins: e.trustedOrigins
24
+ trustedOrigins: e.trustedOrigins,
25
+ isTestMode: e.testMode
25
26
  });
26
27
  return a(() => {
27
28
  if (!e.clientId) {
@@ -30,7 +31,7 @@ const b = ({ children: o, config: e }) => {
30
31
  }
31
32
  localStorage.setItem(r.CLIENT_ID, e.clientId), localStorage.setItem(r.AUTH_FLOW, e.authFlow), e.debugRefreshToken && e.testMode && (localStorage.setItem(r.REFRESH_TOKEN, e.debugRefreshToken), localStorage.setItem(r.TOKEN, e.debugRefreshToken)), e.overrideBaseUrl ? l(e.overrideBaseUrl) : i(e.testMode ?? !1);
32
33
  }, [e]), /* @__PURE__ */ t(m, { client: h, children: /* @__PURE__ */ t(
33
- p.Provider,
34
+ d.Provider,
34
35
  {
35
36
  value: {
36
37
  ...s,
@@ -44,5 +45,5 @@ const b = ({ children: o, config: e }) => {
44
45
  ) });
45
46
  };
46
47
  export {
47
- b as AwayzProvider
48
+ P as AwayzProvider
48
49
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odynn/awayz-core",
3
- "version": "0.6.25",
3
+ "version": "0.6.26",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"