title: How to handle social login? - example flow
body: <p>I have more conteptual question, how exactly should I handle social login in my project.
  The use case is that I would like to allow user to login with Facebook, and keep on my backend information about this user (email, firstname, lastname)</p>
  
  <p>I have some proposal Flow, but I'm not sure if it's a proper approach.
  <a href="https://i.stack.imgur.com/Grmxk.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Grmxk.jpg" alt="enter image description here"></a></p>
  
  <p>Let's say that I have application architecture as above. Now I would like to explain step-by-step full success flow.</p>
  
  <ol>
  <li>Client (Vue application) make a call to AuthProvider (Facebook)</li>
  <li>AuthProvider returns <code>access_token</code></li>
  <li>Client after reciving <code>access_token</code> make a call to backend endpoint like <code>/fb_profile</code> with <code>access_token</code> and <code>userID</code> (?)</li>
  <li>Backend make a call to AuthProvider to check if given by client <code>access_token</code> is valid or not.</li>
  <li>AuthProvider returns information about user. <strong>Backend after getting information about user, save it to database and generate new JWT token</strong></li>
  <li>Backend returns generated token to user</li>
  </ol>
  
  <p>Now my question is - Is this good approach? Or should i handle it in other way? Like keep more logic to backend part? Instead of make a call to Facebook from Client, maybe should I make a call to backend, and backend make a call to Facebook?</p>