You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,7 +217,7 @@ public class RequestTokenServlet extends HttpServlet {
217
217
}
218
218
```
219
219
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.
221
221
222
222
*CallbackServlet.java*
223
223
```java
@@ -276,6 +276,8 @@ public class CallbackServlet extends HttpServlet
276
276
}
277
277
```
278
278
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
+
279
281
*TokenStorage.java*
280
282
```java
281
283
packagecom.xero.example;
@@ -350,7 +352,6 @@ public class TokenStorage
350
352
}
351
353
```
352
354
353
-
In your callback.jsp, you can have a link to access some data resources.
0 commit comments