Skip to content

Commit

Permalink
docs: fix event handler name in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Barbapapazes authored Jul 29, 2024
1 parent 0132ea0 commit a4cfa89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export {}

All handlers can be auto-imported and used in your server routes or API routes.

The pattern is `oauth<Provider>EventHandler({ onSuccess, config?, onError? })`, example: `authGitHubEventHandler`.
The pattern is `oauth<Provider>EventHandler({ 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.

Expand Down

0 comments on commit a4cfa89

Please sign in to comment.