Skip to content

Commit 23f5bd1

Browse files
committed
README udpates
1 parent 5f866fc commit 23f5bd1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public class RequestTokenServlet extends HttpServlet {
217217
}
218218
```
219219

220-
In your callback Servlet you'll read the query params and swap your temporary for your 30 min access token. In our example, we forward the user to the callback.jsp if successful.
220+
In your callback Servlet you'll read the query params and swap your temporary for your 30 min access token.
221221

222222
*CallbackServlet.java*
223223
```java
@@ -276,6 +276,8 @@ public class CallbackServlet extends HttpServlet
276276
}
277277
```
278278

279+
The TokenStorage class uses cookies to store your temporary token & secret so they can be swapped for 30 min access token & secret. Of course, you'd want to create your own implmentation to store this user information in a database. This class is merely for demo purposes so you can trying out the SDK.
280+
279281
*TokenStorage.java*
280282
```java
281283
package com.xero.example;
@@ -350,7 +352,6 @@ public class TokenStorage
350352
}
351353
```
352354

353-
In your callback.jsp, you can have a link to access some data resources.
354355

355356
**Data Endpoints**
356357

0 commit comments

Comments
 (0)