Skip to content
Anton Lamtev edited this page May 3, 2020 · 3 revisions

Auth

GET /login/github

  • Redirects to Github

GET /login/github/callback?code={code}&state={state}

  • Response:
    • 200 OK
    • {
          "accessToken": "token",
          "expirationDateMillis": 1588512127972
      }
      
    • Http-Only Cookie refresh_token={token}

GET /refreshToken

  • Requires Cookie refresh_token={token}
    • Response:
      • 200 OK
      • {
            "accessToken": "newToken",
            "expirationDateMillis": 1588512127972
        }
        
      • Http-Only Cookie refresh_token={newToken}

Access to any protected resource

  • MUST include Authorization: Bearer {token} header

Clone this wiki locally