try/catch around setting credentials
1.0.2
remove the alert from the example