1.0.0 • Published 4 years ago

googleclient-srdn v1.0.0

Weekly downloads
2
License
MIT
Repository
-
Last release
4 years ago

Custom Google API library


Main functional

  • oAuth
  • get basic user info

This library use typescript


Auth

  • Steps in client

    • Create client (use init method)
    • Create auth link then send this to user (use generateAuthLink method)
    • After user approve google permissions, redirectUrl (which was provided in init method) will receive auth code.
    • Create access token from auth code which received in callback url from previous step (use getAccessToken method)
    • Apply credentials (use clientSetCredentials method)
    • Subscribe to update auth tokens for client (use subscribeAutoUpdateAccessToken method)
  • Steps in library

    • createAuthLink
    • After user approve google permissions, redirectUrl (which was provided in init method) will receive auth code.
    • applyAfterCallbackAuthLink