fixed undefined variable in saveAuthItem