Example template as a starting point
The Airlock IAM configuration template Demo configuration using the Loginapp REST UI features a complex authentication flow using the Remember-Me feature for the here described use-case.
The demo configuration shows how to configure many IAM features – you may want to check it out.