17 lines
236 B
Plaintext
17 lines
236 B
Plaintext
|
|
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
|