I have an existing angular app that uses angular-oauth2-oidc to connect to a locally hosted identity server. I have stripped out the angular-oauth2-oidc components and implemented a connection to AWS Cognito (using Amplify) to let users login. The app client settings in the AWS Userpool have been set to authorization code grant.
I can login to my application, but my api isn't authorised to run. It's taken me a month to get this far and I'm still not sure what I'm doing.
What I want to do is login to Cognito using PKCE and be able to call my api endpoints.
I can't find any examples to do what I want to do. Surely this is a common scenario. Can anyone provide me with some guidance on how to do this? An example?