Cognito + GitHub OAuth :zap:️
# guide
m
Cognito + GitHub OAuth
s
Awesome! when will this be available to check out?
g
@manitej why not to use IAM here https://github.com/serverless-stack/serverless-stack/blob/google-oauth/examples/api-oauth-google/stacks/MyStack.js#L79 and you don't need to put this here: https://github.com/serverless-stack/serverless-stack/blob/google-oauth/examples/api-oauth-google/frontend/src/App.jsx#L29 you can just call the api and amplify will put the headers needed if there is a session..
Just an idea! But the example is pretty good!
m
Thanks for the tip, tried with iam but got some issues with it while working with OIDC, JWT is solid in both cases (google & github)
c
Also, getting IAM auth to work in Postman authentication is no piece of cake. I almost had it automated using pre-request scripts that imported the AWK-SDK but the Postman Javascript sandbox does not support XMLHTTP requests that the AWS SDK requires. We ended up just using OAuth with Cognito User Pools to make things easier.