maoosi / prisma-appsync

⚡ Turns your ◭ Prisma Schema into a fully-featured GraphQL API, tailored for AWS AppSync.

Home Page:https://prisma-appsync.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

max-konin opened this issue · comments

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 max-konin@739e27b

What do you think?

@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.

Will be released as part of 1.0.0-rc.7