Recently I had to put together an API call which needed to be authenticated by an application that we are building inside of an Electron Packager. Instead of using a session based implementation, I looked into using JSON Web Token so we could make the calls without having to open up a unnecessary session on the server. I did look at using Basic Auth inside of Laravel but I felt that JWT seemed to offer a bit more security as the calling application would need to have a valid token in order to make subsequent calls to the server.JWT allows for a stateless authentication exchange between the application and the server by taking a username or email and a password and then passing back to the application a token generated by a key and with a date of expiry. Because our API was built on Laravel we were able to do this easily using JWT-Auth.Firstly, add the JWT-Auth package to your composer.json file:

Posted on February 04, 2016

It has been a busy few months for me. Not only has it been the christmas holidays but I have also spent time playing with and implementing some exciting new technology for our company.

Posted on January 28, 2016