class CreateTokenController implements RequestHandlerInterface

Not to be confused with the CreateAccessTokenController, this controller is used to authenticate a user with credentials, and return a system generated session-type access token.

Methods

__construct(UserRepository $users, Dispatcher $bus, Dispatcher $events)

No description

ResponseInterface
handle(ServerRequestInterface $request)

No description

Details

__construct(UserRepository $users, Dispatcher $bus, Dispatcher $events)

Parameters

UserRepository $users
Dispatcher $bus
Dispatcher $events

ResponseInterface handle(ServerRequestInterface $request)

Parameters

ServerRequestInterface $request

Return Value

ResponseInterface