@asgardeo/react 0.6.27 → 0.6.28

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.js CHANGED
@@ -1785,6 +1785,54 @@ var AsgardeoProvider = ({
1785
1785
  flattenedProfile: generateFlattenedUserProfile2(payload, prev?.schemas)
1786
1786
  }));
1787
1787
  };
1788
+ const getDecodedIdToken = useCallback7(async () => {
1789
+ return await asgardeo.getDecodedIdToken();
1790
+ }, [asgardeo]);
1791
+ const getAccessToken = useCallback7(async () => {
1792
+ return await asgardeo.getAccessToken();
1793
+ }, [asgardeo]);
1794
+ const request = useCallback7(
1795
+ async (...args) => {
1796
+ return await asgardeo.request(...args);
1797
+ },
1798
+ [asgardeo]
1799
+ );
1800
+ const requestAll = useCallback7(
1801
+ async (...args) => {
1802
+ return await asgardeo.requestAll(...args);
1803
+ },
1804
+ [asgardeo]
1805
+ );
1806
+ const exchangeToken = useCallback7(
1807
+ async (config2, sessionId) => {
1808
+ return await asgardeo.exchangeToken(config2, sessionId);
1809
+ },
1810
+ [asgardeo]
1811
+ );
1812
+ const signOut = useCallback7(
1813
+ async (...args) => {
1814
+ return await asgardeo.signOut(...args);
1815
+ },
1816
+ [asgardeo]
1817
+ );
1818
+ const signUp = useCallback7(
1819
+ async (...args) => {
1820
+ return await asgardeo.signUp(...args);
1821
+ },
1822
+ [asgardeo]
1823
+ );
1824
+ const clearSession = useCallback7(
1825
+ async (...args) => {
1826
+ return await asgardeo.clearSession(...args);
1827
+ },
1828
+ [asgardeo]
1829
+ );
1830
+ const reInitialize = useCallback7(
1831
+ async (config2) => {
1832
+ return await asgardeo.reInitialize(config2);
1833
+ },
1834
+ [asgardeo]
1835
+ );
1788
1836
  const value = useMemo6(
1789
1837
  () => ({
1790
1838
  applicationId,
@@ -1793,25 +1841,25 @@ var AsgardeoProvider = ({
1793
1841
  signUpUrl,
1794
1842
  afterSignInUrl,
1795
1843
  baseUrl,
1796
- clearSession: asgardeo.clearSession.bind(asgardeo),
1797
- getAccessToken: asgardeo.getAccessToken.bind(asgardeo),
1844
+ clearSession,
1845
+ getAccessToken,
1798
1846
  isInitialized: isInitializedSync,
1799
1847
  isLoading: isLoadingSync,
1800
1848
  isSignedIn: isSignedInSync,
1801
1849
  organization: currentOrganization,
1802
1850
  signIn,
1803
1851
  signInSilently,
1804
- signOut: asgardeo.signOut.bind(asgardeo),
1805
- signUp: asgardeo.signUp.bind(asgardeo),
1852
+ signOut,
1853
+ signUp,
1806
1854
  user,
1807
1855
  http: {
1808
- request: asgardeo.request.bind(asgardeo),
1809
- requestAll: asgardeo.requestAll.bind(asgardeo)
1856
+ request,
1857
+ requestAll
1810
1858
  },
1811
- reInitialize: asgardeo.reInitialize.bind(asgardeo),
1859
+ reInitialize,
1812
1860
  signInOptions,
1813
- getDecodedIdToken: asgardeo.getDecodedIdToken.bind(asgardeo),
1814
- exchangeToken: asgardeo.exchangeToken.bind(asgardeo),
1861
+ getDecodedIdToken,
1862
+ exchangeToken,
1815
1863
  syncSession,
1816
1864
  platform: config?.platform,
1817
1865
  switchOrganization
@@ -1833,7 +1881,16 @@ var AsgardeoProvider = ({
1833
1881
  asgardeo,
1834
1882
  signInOptions,
1835
1883
  syncSession,
1836
- switchOrganization
1884
+ switchOrganization,
1885
+ getDecodedIdToken,
1886
+ getAccessToken,
1887
+ request,
1888
+ requestAll,
1889
+ exchangeToken,
1890
+ signOut,
1891
+ signUp,
1892
+ clearSession,
1893
+ reInitialize
1837
1894
  ]
1838
1895
  );
1839
1896
  return /* @__PURE__ */ jsx7(AsgardeoContext_default.Provider, { value, children: /* @__PURE__ */ jsx7(I18nProvider_default, { preferences: preferences?.i18n, children: /* @__PURE__ */ jsx7(