Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
devthedevel committed Jan 10, 2024
1 parent c5a1ad9 commit 031e78e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
4 changes: 0 additions & 4 deletions docs/faq/_category_.json

This file was deleted.

7 changes: 0 additions & 7 deletions docs/faq/faq.md

This file was deleted.

8 changes: 8 additions & 0 deletions docs/reference/js-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,3 +374,11 @@ notificationapi.showUserPreferences();
| id\* | string | The unique ID of the user in your system. |
| email | string | The email of the user. |
| phone | string | The phone number of the user. Expected format: +15554443333. |

## Frequently Asked Questions (FAQ)

### Why Can I Not Send Notifications from a Front-end SDK?

NotificationAPI back-end SDKs require your `clientId` and `clientSecret` keys that are unique to your account. If anyone else obtained your keys then they would be able to edit or delete your notifications, and be able to send requests to NotificationAPI from your account. This is a security risk to you and your clients.

To better protect you, the NotificationAPI front-end SDKs do not allow _sending_ notifications: they only allow _receiving_ notifications. If you require sending notifications from your front-end, it is recommended to use a NotificationAPI back-end SDK on your back-end and expose an API for your front-end.

0 comments on commit 031e78e

Please sign in to comment.