Since Pagekit is based on Symfony, there is a easy method to do Symfony authentication of the token. You can use the Guard component. For this you will have to Guard and setup authenticator Class. Now, configure the authenticator by updating the Firewall. After that you will have to register the authenticator as a service in your yml file. Now you can test the response with this command