This project demonstrates how to use OAuth2 with Lucy
The main code is in main.dart.
You will need to setup a OAuth2 client within Lucy.
Go to /Apps/System/oauth2clients.admin
to setup an iviva client.
The OAuth2 endpoint information is here: /Apps/System/oauth2info