maoosi / prisma-appsync

⚡ Turns your ◭ Prisma Schema into a fully-featured GraphQL API, tailored for AWS AppSync.
https://prisma-appsync.vercel.app
BSD 2-Clause "Simplified" License
226 stars 18 forks source link

Local server does not take into account the data from the authorization token (AMAZON_COGNITO_USER_POOLS auth mode) #139

Closed max-konin closed 1 year ago

max-konin commented 1 year ago

Hi I see that some data such as username & sub is hardcoded. And claims is an empty object. And there is no way to influence it. I think it would be logical to take this data from a real Cognito token. I sketched a simple solution here https://github.com/max-konin/prisma-appsync/commit/739e27b80277d3238ee912f18c54971ea5ebaaee

What do you think?

maoosi commented 1 year ago

@max-konin I think that's a great idea! Feel free to open a PR and I will include your contribution to the next release.

maoosi commented 1 year ago

Will be released as part of 1.0.0-rc.7