Fixed a bug in the Authentication
Create js library