From e3c80269ea39f65537408e0a696fb366b12e4fde Mon Sep 17 00:00:00 2001 From: Edoardo Ranghieri Date: Sat, 22 Apr 2023 18:43:27 +0200 Subject: [PATCH] docs(readme): better phrasing --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a36b70c..36bc9a65 100644 --- a/README.md +++ b/README.md @@ -218,7 +218,7 @@ Image example: ## Authenticated mutation -The library also supports creating protected mutations, that will return a `serverError` back if user is not authenticated. You need to make some changes to the above code to be able to use them. +The library also supports creating protected mutations, that will return a `serverError` back if user is not authenticated. You need to make some changes to the above code in order to use them. First, when creating the safe mutation client, you **must** provide an `async function` called `getAuthData` as an option. You can return anything you want from here. If you find out that the user is not authenticated, you can safely throw an error in this function. It will be caught, and the client will receive a `serverError` response.