title: OAuth or JWT? Which one to use and why?
body: <p>I am starting to learn about token based authentication and I am trying to learn how to implement it in Laravel 5. I have come across two very popular technologies for doing this but I am confused since I am new to both these technologies.</p>
  
  <p><a href="https://medium.com/@mshanak/laravel-5-token-based-authentication-ae258c12cfea" rel="noreferrer">This article at Medium</a> says I should go with <a href="https://github.com/lucadegasperi/oauth2-server-laravel" rel="noreferrer">lucadegasperi/oauth2-server-laravel</a> which I am sure is a very popular package in the community judging by the number of stars on Github and the number of references that have led me to it. This one is supposed to help me with OAuth implementation.</p>
  
  <p><a href="https://scotch.io/tutorials/token-based-authentication-for-angularjs-and-laravel-apps" rel="noreferrer">This other article at Scotch.io</a> encourages me to use <a href="https://github.com/tymondesigns/jwt-auth" rel="noreferrer">tymondesigns/jwt-auth</a> which is also very popular again judging by the number of stars on Github.</p>
  
  <p>At this point I am indecisive of which one to use mostly because I am a novice developer and I haven't worked with either of them.</p>
  
  <p>Could anyone point out to me what are the pros and cons to each one of them and which one I should implement? Will my project type also dictate what kind I should use? And how?</p>
  
  <p>Moreover if you are making an argument that I should choose one over the other, could you also point out good resources that would help me start with them. Other than the two links I provided myself of course.</p>