Skip to content

410Labs/google_oauth2_model

Repository files navigation

google_oauth2_model

Build Status Dependency Status

Allow a model to store google oauth2 access and refresh tokens.

Your model is expected to have the following columns:

  • oauth2_token: string
  • oauth2_token_expires_at: datetime
  • oauth2_refresh_token: string

First, set your Google key and secret:

GoogleOauth2Model.consumer_key = '<your google key>'
GoogleOauth2Model.consumer_secret = '<your google secret>'

Then, in your model, include the methods:

include GoogleOauth2Model::GoogleAccessToken::OwnerMethods

About

Allow a model to store google oauth2 access and refresh tokens

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages