ditto in README
This commit is contained in:
parent
7f1cb9e8b2
commit
d0fa39472a
@ -16,7 +16,7 @@ $server = new Taproot\IndieAuth\Server([
|
|||||||
|
|
||||||
// An authentication callback function, which either returns data about the current user,
|
// An authentication callback function, which either returns data about the current user,
|
||||||
// or redirects to/implements an authentication flow.
|
// or redirects to/implements an authentication flow.
|
||||||
'handleAuthenticationRequestCallback' => function (ServerRequestInterface $request, string $authenticationRedirect, ?string $normalizedMeUrl) {
|
'authenticationHandler' => function (ServerRequestInterface $request, string $authenticationRedirect, ?string $normalizedMeUrl) {
|
||||||
// If the request is authenticated, return an array with a `me` key containing the
|
// If the request is authenticated, return an array with a `me` key containing the
|
||||||
// canonical URL of the currently logged-in user.
|
// canonical URL of the currently logged-in user.
|
||||||
if ($userUrl = getLoggedInUserUrl($request)) {
|
if ($userUrl = getLoggedInUserUrl($request)) {
|
||||||
|
Reference in New Issue
Block a user