Hi, I can deploy and get 401 errors but when I run jets locally it gives a 200 response. When I remove the authorizers i get a 200 on both my local and dev environments
Controller
class OrdersController < ApplicationController
authorizer "main#my_cognito"
Authorizer
class MainAuthorizer < ApplicationAuthorizer
authorizer(
name: "MyCognito", # <= name is used as the "function" name
identity_source: "Authorization", # maps to method.request.header.Authorization
type: :cognito_user_pools,
provider_arns: [
"...",
],
)
# no lambda function
end