Skip to content

Commit

Permalink
Add email verification docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DLeyland committed Dec 3, 2024
1 parent 0e4e1cd commit 1c584ae
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions chat/authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,18 @@ Plain.init({
},
});
```

## Customer verification

If you want to see the name and email of customers who get in touch via chat you can require them to provide their details
by setting `requireAuthentication` to true in Plain init:

```typescript
Plain.init({
requireAuthentication: true
});
```

When enabled, any customer getting in touch will first be presented with a form allowing them to enter their name and email address.

The customer will then receive a verification code to that email which they can enter to start a chat.

0 comments on commit 1c584ae

Please sign in to comment.