In which channel can we ask about how to implement...
# help
f
In which channel can we ask about how to implement something?
t
Here is probably fine!
f
@thdxr is there a way for cognito to create API keys for each of my users? Or do I have to do this manually?
t
I don't know too much about cognitio
f
@thdxr haha! ok! Well since we’re in the topic. I tried to implement this: https://serverless-stack.com/examples/how-to-add-cognito-authentication-to-a-serverless-api.html
But I get a
Copy code
{
  status: 403,
  statusText: 'Forbidden',
  data: { message: 'Forbidden' }
}
Nvm. Figured it out. Thanks!
a
Using cognito authorizer for an API is possible, but I'm not completely sure how to do it in SST. Maybe this helps: https://docs.serverless-stack.com/api#jwt-via-cognito-user-pool
I'm not exactly sure what the difference is between the tutorial you linked and the one above
I thought the IAM way also uses JWT under the hood, but now I'm unsure
f
Thanks @Adrian Schweizer will check this out!
k
@Francis Menguito Perhaps it's easier to just defer to a different authority (which your users are already using) Cognito supports e.g. Google / Facebook / Apple). A Facebook example was provided today by manitej 😉
f
@Klaus thanks! Will look into this as well!