2020-01-26 19:14:51 +00:00
|
|
|
json.payload do
|
|
|
|
json.success true
|
|
|
|
json.data do
|
|
|
|
json.id @resource.id
|
|
|
|
json.provider @resource.provider
|
|
|
|
json.uid @resource.uid
|
|
|
|
json.name @resource.name
|
|
|
|
json.nickname @resource.nickname
|
|
|
|
json.email @resource.email
|
2020-03-07 06:48:16 +00:00
|
|
|
json.account_id @resource.account.id
|
2020-01-26 19:14:51 +00:00
|
|
|
json.pubsub_token @resource.pubsub_token
|
2020-03-07 06:48:16 +00:00
|
|
|
json.role @resource.account_user.role
|
|
|
|
json.inviter_id @resource.account_user.inviter_id
|
2020-01-26 19:14:51 +00:00
|
|
|
json.confirmed @resource.confirmed?
|
|
|
|
json.avatar_url @resource.avatar_url
|
2020-03-10 18:32:15 +00:00
|
|
|
json.access_token @resource.access_token&.token
|
2020-01-26 19:14:51 +00:00
|
|
|
end
|
|
|
|
end
|