Skip to content

Commit

Permalink
lint-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Jul 15, 2022
1 parent a08a708 commit 2e905ab
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/auth-with-stytch/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,16 @@ const stytchProps: StytchProps = {
publicToken: process.env.NEXT_PUBLIC_STYTCH_PUBLIC_TOKEN || '',
callbacks: {
onEvent: (data: { eventData: { userId: any; email: any } }) => {
if (data.eventData.userId != undefined && data.eventData.userId != null) {
if (
data.eventData.userId !== undefined &&
data.eventData.userId != null
) {
console.log({
userId: data.eventData.userId,
email: data.eventData.email,
})
} else {
console.warn("The user is not found. Data: ", data);
console.warn('The user is not found. Data: ', data)
}
},
onSuccess: (data) => console.log(data),
Expand Down

0 comments on commit 2e905ab

Please sign in to comment.