Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ the various Link options and the
| `onExit` | `(error: null \| PlaidLinkError, metadata: PlaidLinkOnExitMetadata) => void` |
| `onEvent` | `(eventName: PlaidLinkStableEvent \| string, metadata: PlaidLinkOnEventMetadata) => void` |
| `onLoad` | `() => void` |
| `receivedRedirectUri` | `string \| null \| undefined` |
| `receivedRedirectUri` | `string \| undefined` |
| `cspNonce` | `string \| undefined` |

#### Content Security Policy nonce
Expand Down
4 changes: 2 additions & 2 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ export type PlaidLinkOnEvent = (
export type PlaidLinkOnLoad = () => void;

export interface CommonPlaidLinkOptions<T> {
// A function that is called when a user has successfully connecter an Item.
// The function should expect two arguments, the public_key and a metadata object
// A function that is called when a user has successfully connected an Item.
// The function should expect two arguments, the public_token and a metadata object
onSuccess: T;
// A callback that is called when a user has specifically exited Link flow
onExit?: PlaidLinkOnExit;
Expand Down