From cb2e675f1cc7e93ec55d999ab328fa5a22921e0f Mon Sep 17 00:00:00 2001 From: amandah Date: Thu, 27 Jan 2022 16:29:52 -0800 Subject: [PATCH] add auth code exchange info --- docs/quickstart.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/quickstart.md b/docs/quickstart.md index 0a4ffe34..ecf3fd91 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -85,11 +85,15 @@ These methods are the ones you will use to create a new project or edit an exist --- ## Step 4: Exchange Code for Access Token -When the login is finished, CCX will redirect to the redirect URL you provide us with, and send an authorization code. We can exchange that code from an access token with the following line: +After a user logs in, make sure you get the user's access token using the `exchangeAuthCodeForToken()` API. + +When you call this API, what happens is the Adobe IMS Server stores the code and redirects the user back to the application's specified redirect URL with an authorization code, which is good for one use. + +We can exchange that code from an access token with the following line: ``` ccEverywhere.exchangeAuthCodeForToken(); ``` -Make sure you call this after you initialize the SDK. +Make sure you call this after you initialize the SDK. After you exchange the authorization code for an access token, you can store and use that token for future requests to the SDK during this session. ---