Microsoft Quick Authentication samples
JavaScript sign-in example