2021-03-15 13:45:48 +00:00
|
|
|
json.access_token resource.access_token.token
|
|
|
|
json.account_id resource.active_account_user&.account_id
|
|
|
|
json.available_name resource.available_name
|
|
|
|
json.avatar_url resource.avatar_url
|
|
|
|
json.confirmed resource.confirmed?
|
|
|
|
json.display_name resource.display_name
|
2022-02-02 14:07:33 +00:00
|
|
|
json.message_signature resource.message_signature
|
2021-03-15 13:45:48 +00:00
|
|
|
json.email resource.email
|
|
|
|
json.id resource.id
|
|
|
|
json.name resource.name
|
|
|
|
json.provider resource.provider
|
|
|
|
json.pubsub_token resource.pubsub_token
|
2021-09-02 12:59:45 +00:00
|
|
|
json.custom_attributes resource.custom_attributes if resource.custom_attributes.present?
|
2021-03-15 13:45:48 +00:00
|
|
|
json.role resource.active_account_user&.role
|
|
|
|
json.ui_settings resource.ui_settings
|
|
|
|
json.uid resource.uid
|
|
|
|
json.accounts do
|
|
|
|
json.array! resource.account_users do |account_user|
|
|
|
|
json.id account_user.account_id
|
|
|
|
json.name account_user.account.name
|
|
|
|
json.active_at account_user.active_at
|
|
|
|
json.role account_user.role
|
|
|
|
end
|
|
|
|
end
|