Hello I'm using serverless apis using aws api gateway lambda proxy, golang, and aws cognito
events:
- http:
path: myendpoint
method: get
cors: true
authorizer:
name: my-authorizer
arn: {COGNITO_POOL_ARN}
plugins:
- serverless-domain-manager
custom:
customDomain:
domainName: mydomain.com
basePath: mybasepath
stage: ${self:provider.stage}
createRoute53Record: true
this allows me to make request using the ID token to mydomain.com/mybasepath/myendpoint , I want to make it more standard and use access tokens.
it won't take the access token, API Gateway authorizer would bounce it off.
I added this as Resource Server to the Cognito user pool settings
in the App client settings I check the resource for the app client
I log out create a new session for the user, new tokens and i would get a 401 Unathorized I think I'm following the documentation correctly as it is here maybe I'm missing something else or perhaps because it is a serverless api it is a different set up that i need.
Any help or guidence is fully appreciated.

