Securing your API with tokens

At the moment I'm building a SPA where I (ofcourse) need authentication to my api.

The most common way to do this is through sessions with cookies, but this might get ugly on mobile platforms later on.

Another way to authenticate is by using tokens. The link below show a complete way to create a Node app with token authentication and an AngularJS front-end.

Ronald Harmsen

I'm a software developer. When I'm not developing software I'm training & coaching other developers, speaking on a conference or fiddling with some technical stuff.

Arnhem, The Netherlands

Subscribe to Ronald to the cloud

Get the latest posts delivered right to your inbox.

or subscribe via RSS with Feedly!