dabit3 / appsync-auth-and-unauth

How to allow both authenticated & unauthenticated access to an API
90 stars 2 forks source link

401 error #11

Closed rpostulart closed 4 years ago

rpostulart commented 5 years ago

@dabit3 Thanks for this solution.

I followed the steps, but still get a 401 error when I do the graphql API call.

I receive a succesfull session:

accessKeyId: "ASIAR3RT7GVZDAHJGR76"
authenticated: false
cognito: features.constructor {config: Config, isGlobalEndpoint: false, endpoint: Endpoint, _events: {…}, MONITOR_EVENTS_BUBBLE: ƒ, …}
data:
Credentials: {AccessKeyId: "ASIAR3RT7GVZDAHJGR76", SecretKey: "aJcfXtnrmhXYLogkvxqMG3iYMDG33B0/H/GLp9HD", SessionToken: "AgoJb3JpZ2luX2VjEGYaCWV1LXdlc3QtMSJHMEUCIA2sFWZHTv…1epgdUrBeFcdJQV307USO6BxcuMgahniRbQkvcEw8bQlFLAQ=", Expiration: Sun Oct 06 2019 00:39:30 GMT+0200 (Central European Summer Time)}

Any ideas?