Permalink
Browse files

Make verifier a method so it won't be undefined when getting a refres…

…h token. Closes #328
  • Loading branch information...
1 parent 99a316f commit 212acb5048d4b3f0aa4c023bfce74321851028de Michael Bleigh committed May 17, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 oa-oauth/lib/omniauth/strategies/oauth2.rb
View
5 oa-oauth/lib/omniauth/strategies/oauth2.rb
@@ -82,8 +82,11 @@ def callback_phase
fail!(:invalid_response, e)
end
+ def verifier
+ request.params['code']
+ end
+
def build_access_token
- verifier = request.params['code']
client.web_server.get_access_token(verifier, {:redirect_uri => callback_url}.merge(options))
end

0 comments on commit 212acb5

Please sign in to comment.