Skip to content

Authentication

Mars Tan edited this page Apr 17, 2019 · 5 revisions

Token header

Add custom header in your request:

Authorization: Token {token}

Flow

  1. /login User clicks Google Login button
  2. /api/auth/google Redirect to Google, user logins using Google
  3. /api/auth/google/redirect Redirected from Google
  4. /?token= Front-end receives token; ajax to back-end and verify
  5. / Redirected to Dashboard