app/graphql/ibrain/auth/mutations/sign_in_mutation.rb in ibrain-auth-0.2.1 vs app/graphql/ibrain/auth/mutations/sign_in_mutation.rb in ibrain-auth-0.2.2
- old
+ new
@@ -41,10 +41,12 @@
end
private
def normalize_params(args)
- ActionController::Parameters.new({ auth: args })
+ args[:auth].to_params
+ rescue StandardError
+ ActionController::Parameters.new({})
end
def auth_options
{ scope: resource_name }
end