fix Credentials (oauth_token, oauth_token_secret)

This commit is contained in:
Brent Hargrave 2015-12-19 12:28:42 -05:00
parent 277cbe3c84
commit cc3bf7a0b8

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 """