change function getAuthenticationError and generateToken to protected
Merge pull request #89 from tubssp/patch-1

change function getAuthenticationError and generateToken to protected