1 個回答
- 最新
- 最多得票
- 最多評論
1
Hello,
From Amplify/App sync perspective, there is no built-in way to retrieve the permissions of a user before hitting the App sync GraphQL endpoint.
One possible way I could think of is Cognito Pools would return groups of the User(in the JWT token) when a user logs in and you can get the groups and use it directly in your Front end code. This can be achieved like this: accessToken.payload['cognito:groups']
References
[+] https://github.com/aws-amplify/amplify-flutter/issues/413
[+] https://github.com/aws-amplify/amplify-android/issues/1655
I hope this answers your query.
相關內容
- 已提問 7 個月前
- 已提問 7 個月前
- AWS 官方已更新 2 年前