@passkeyme/react-auth 2.1.0 → 2.2.1

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.esm.js CHANGED
@@ -171,6 +171,9 @@ const usePasskeyme = () => {
171
171
  const getAppConfig = useCallback(async () => {
172
172
  return auth.getAppConfig();
173
173
  }, [auth]);
174
+ const getUserInfo = useCallback(async () => {
175
+ return auth.getUserInfo();
176
+ }, [auth]);
174
177
  const triggerPasskeymeAuth = useCallback(async (options = {}) => {
175
178
  var _a, _b;
176
179
  const { username, apiKey, mode = "hosted", onSuccess, onError, onOAuthRequired, showNotifications = false, // Default to false for core package
@@ -340,6 +343,7 @@ const usePasskeyme = () => {
340
343
  passkeyLogin,
341
344
  smartLogin,
342
345
  getAppConfig,
346
+ getUserInfo,
343
347
  triggerPasskeymeAuth,
344
348
  authLoading,
345
349
  auth,