You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 20, 2020. It is now read-only.
Note that version ~> 2.0 of this gem uses the new Coinbase API v2. Use this version if you are creating a new app. Do not upgrade existing apps to this version as the user ids in v2 of the API are not the same as those in v1. We will be adding v2 UUIDs to v1 responses to aid in migration efforts.
Installation
Add to your Gemfile:
gem"omniauth-coinbase"
Then bundle install.
Usage
Here's an example, adding the middleware to a Rails app in config/initializers/omniauth.rb:
NOTE: While developing your application, if you change the scope in the initializer you will need to restart your app server.
User info
The authenticated user's id and name are present in the omniauth auth object under auth.uid and auth.info.name.
The authenticated user's raw information is present under auth.extra.raw_info
auth.uid# "7eee8527-3439-52d9-98d6-a04c0d0dc6ce"auth.info.name# "Alex Ianus"auth.extra.raw_info.email# "aianus@example.com", only present with wallet:user:email scopeauth.extra.raw_info.time_zone# "Pacific Time (US & Canada)", only present with wallet:user:show scope