@privy-io/react-auth 1.11.0-beta.4 → 1.12.0-beta.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.cjs.js +67 -67
- package/dist/index.d.ts +15 -2
- package/dist/index.esm.js +61 -61
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -143,9 +143,22 @@ interface PrivyProviderProps {
|
|
|
143
143
|
/**
|
|
144
144
|
* An optional callback that will execute once a `login` call successfully completes.
|
|
145
145
|
*
|
|
146
|
-
*
|
|
146
|
+
* Within this callback, you can access:
|
|
147
|
+
* - the `user` object corresponding to the authenticated user
|
|
148
|
+
* - an `isNewUser` boolean flag indicating if this is the user's first time logging in to your app
|
|
149
|
+
*
|
|
150
|
+
*/
|
|
151
|
+
onSuccess?: (user: User, isNewUser: boolean) => void;
|
|
152
|
+
/**
|
|
153
|
+
* @experimental This feature is under active development.
|
|
154
|
+
*
|
|
155
|
+
* An optional callback that will execute if a `login` call fails.
|
|
156
|
+
*
|
|
157
|
+
* Within this callback, you can access:
|
|
158
|
+
* - an `isNotAllowed` boolean flag indicating if the user was prevented from logging in by
|
|
159
|
+
* your app's allowlist, if you have one enabled
|
|
147
160
|
*/
|
|
148
|
-
|
|
161
|
+
onError?: (isNotAllowed: boolean) => void;
|
|
149
162
|
/** @ignore */
|
|
150
163
|
children: React.ReactNode;
|
|
151
164
|
}
|