Skip to content

Commit 809f75a

Browse files
committed
Check if onSignedInHook is a function
1 parent 146b94d commit 809f75a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/client/src/AccountsClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export class AccountsClient {
202202
this.store.dispatch(setTokens(res.tokens));
203203
this.store.dispatch(setUser(res.user));
204204

205-
if (this.options.onSignedInHook) {
205+
if (this.options.onSignedInHook && isFunction(this.options.onSignedInHook)) {
206206
this.options.onSignedInHook();
207207
}
208208

0 commit comments

Comments
 (0)