Added example to show use of auth library