Sample Javascript client for DurandalAuth