refactoring the google api auth with official library.