The ideal workflow

When designing your application, you will want to utilize all of the tools and workflows at your disposal to achieve a user experience that is as seamless as possible. Now, given all of the information we have presented in this book thus far, we can create an optimal behavior workflow that our application can follow that makes the best use of the available workflows to minimize any user interactions that the user will have to do before your application can make API calls:

The ideal workflow

In the preceding flow diagram, we start with an access token. We continue to make API calls while the token is valid. Once the token becomes invalid (either because ...

Get Mastering OAuth 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.