Automatic generation of the state parameter in the authorization url for some services plus optional state check when requesting acces token