From a4cfa89bd540aa95c2b77330adaf1a3681e6ff2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Est=C3=A9ban?= Date: Mon, 29 Jul 2024 23:16:41 +0200 Subject: [PATCH] docs: fix event handler name in example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index da04ee7a..f12f1098 100644 --- a/README.md +++ b/README.md @@ -157,7 +157,7 @@ export {} All handlers can be auto-imported and used in your server routes or API routes. -The pattern is `oauthEventHandler({ onSuccess, config?, onError? })`, example: `authGitHubEventHandler`. +The pattern is `oauthEventHandler({ onSuccess, config?, onError? })`, example: `oauthGitHubEventHandler`. The helper returns an event handler that automatically redirects to the provider authorization page and then calls `onSuccess` or `onError` depending on the result.