@finatic/client 0.0.138 → 0.0.139
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.d.ts +4 -1
- package/dist/index.js +16 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -5
- package/dist/index.mjs.map +1 -1
- package/dist/types/types/connect.d.ts +4 -1
- package/package.json +1 -1
|
@@ -39,7 +39,10 @@ export interface PortalMessage {
|
|
|
39
39
|
}
|
|
40
40
|
export interface PortalOptions {
|
|
41
41
|
/** Callback when user successfully connects */
|
|
42
|
-
onSuccess?: (userId: string
|
|
42
|
+
onSuccess?: (userId: string, tokens?: {
|
|
43
|
+
access_token?: string;
|
|
44
|
+
refresh_token?: string;
|
|
45
|
+
}) => void;
|
|
43
46
|
/** Callback when an error occurs */
|
|
44
47
|
onError?: (error: Error) => void;
|
|
45
48
|
/** Callback when the portal is closed */
|