class DropboxOAuth2Flow::BadStateError

Thrown if all the parameters are correct, but there's no CSRF token in the session. This probably means that the session expired.

The recommended action is to redirect the user's browser to try the approval process again.