Skip to content

Commit

Permalink
Fixing.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewculver committed Oct 22, 2021
1 parent 350ab5a commit 6c2b9fc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/omniauth/bullet_train.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@ class BulletTrain < OmniAuth::Strategies::OAuth2
:authorize_url => "/oauth/authorize"
}

uid { raw_info["id"] }
uid {
raw_info["id"]
}

info do
{
:email => raw_info["email"]
# and anything else you want to return to your API consumers
}
end

def raw_info
@raw_info ||= access_token.get('/api/v1/me.json').parsed
@raw_info ||= JSON.parse(access_token.get('/api/v1/me.json').body)
end

# https://github.com/intridea/omniauth-oauth2/issues/81
Expand Down

0 comments on commit 6c2b9fc

Please sign in to comment.