jam-cloud/web/app/views/api_users/google_auth.rabl

17 lines
236 B
Plaintext
Raw Permalink Normal View History

2015-10-08 02:12:26 +00:00
object @user
node :auth do
auth = UserAuthorization.refreshing_google_auth(@user)
if auth
{
uid: auth.uid,
provider: auth.provider,
token: auth.token,
secret: auth.secret
}
else
nil
end
end