I have a rails app that has google Login. I am using a 'omniauth-google-oauth2' gem. After authorization from user, i am getting the credentials in the form of OmniAuth::AuthHash.
I am planning to use "google_contacts_api" to get the contacts for the user, This requires me to have a OAuth2::AccessToken to get contacts. And in order to create the same, i need OAuth2::Client to create the AccessToken. I was wondering
- How to create client using the OmniAuth Strategy and second
- Is there a better way to create OAuth2::AccessToken?