|
|
@ -30,8 +30,8 @@ class ApiController < ApplicationController
|
|
|
|
render json: { error: 'Remote SSL certificate could not be verified' }, status: 503
|
|
|
|
render json: { error: 'Remote SSL certificate could not be verified' }, status: 503
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def doorkeeper_unauthorized_render_options(*)
|
|
|
|
def doorkeeper_unauthorized_render_options(error: nil)
|
|
|
|
{ json: { error: 'Not authorized' } }
|
|
|
|
{ json: { error: (error.try(:description) || 'Not authorized') } }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def doorkeeper_forbidden_render_options(*)
|
|
|
|
def doorkeeper_forbidden_render_options(*)
|
|
|
|