@passkeyme/react-auth 2.0.13 → 2.2.0
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 +4 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -172,6 +172,9 @@ const usePasskeyme = () => {
|
|
|
172
172
|
const getAppConfig = React.useCallback(async () => {
|
|
173
173
|
return auth$1.getAppConfig();
|
|
174
174
|
}, [auth$1]);
|
|
175
|
+
const getUserInfo = React.useCallback(async () => {
|
|
176
|
+
return auth$1.getUserInfo();
|
|
177
|
+
}, [auth$1]);
|
|
175
178
|
const triggerPasskeymeAuth = React.useCallback(async (options = {}) => {
|
|
176
179
|
var _a, _b;
|
|
177
180
|
const { username, apiKey, mode = "hosted", onSuccess, onError, onOAuthRequired, showNotifications = false, // Default to false for core package
|
|
@@ -341,6 +344,7 @@ const usePasskeyme = () => {
|
|
|
341
344
|
passkeyLogin,
|
|
342
345
|
smartLogin,
|
|
343
346
|
getAppConfig,
|
|
347
|
+
getUserInfo,
|
|
344
348
|
triggerPasskeymeAuth,
|
|
345
349
|
authLoading,
|
|
346
350
|
auth: auth$1,
|