From 5f9b73c4666924cb2e4a78ea0b0a4db72dfe8f65 Mon Sep 17 00:00:00 2001 From: Ujjwal Ojha Date: Fri, 24 Oct 2014 18:59:39 +0545 Subject: [PATCH] Updated docs for support of access token --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0a1430b..ad12fa8 100644 --- a/README.md +++ b/README.md @@ -84,8 +84,8 @@ return [ ## How It Works ### Login with OAuth 2.0 -1. **Client:** Client sends a `POST` request to the server at */oauth/token* with oauth2 authorization code. -2. **Server:** Then *authorization code* is exchanged for *provider access token*. +1. **Client:** Client sends a `POST` request to the server at */oauth/token* with oauth2 authorization code or access token. +2. **Server:** With *authorization code*, *authorization code* is exchanged for *provider access token*. 3. **Server:** User information is retrived using the *provider access token* from **Step 2**. 4. **Server:** Look up the user by the unique *provider id*. If user already exists, grab the existing user, otherwise create a new user account.