Merge pull request #4 from jamescallmebrent/fix-credentials

fix Credentials (oauth_token, oauth_token_secret)
This commit is contained in:
Sean Callan 2015-12-19 11:05:44 -08:00
commit c8b30df384

View File

@ -60,9 +60,9 @@ defmodule Ueberauth.Strategy.Twitter do
Includes the credentials from the twitter response.
"""
def credentials(conn) do
{token, _secret} = get_session(conn, :twitter_token)
{token, secret} = conn.private.twitter_token
%Credentials{token: token}
%Credentials{token: token, secret: secret}
end
@doc """