amplify-android icon indicating copy to clipboard operation
amplify-android copied to clipboard

Question: Get cognito user pool data

Open pm-nchain opened this issue 1 year ago • 1 comments

Hey,

is it possible to somehow access Cognito user pool data, such as PoolId, AppClientId and Region?

I want to do some Cognito operations, by using "escape hatch" and I require AppClientId. Is there a way to obtain this information, other than parsing amplifyconfiguration.json on your own?

pm-nchain avatar Feb 19 '24 16:02 pm-nchain

Hello @pm-nchain, thanks for reaching out. We don't support accessing the AppClientId from the Auth plugin, please parse the config file -- we have a helper function AmplifyConfiguration.fromConfigFile(context) and then config.forCategoryType(...) to access the object structure of the config instead of parsing the JSON file directly, if that helps.

tjleing avatar Feb 20 '24 18:02 tjleing

Closing this issue due to inactivity. Please feel free to open a new issue if required, thank you

joon-won avatar Apr 15 '24 19:04 joon-won

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.

github-actions[bot] avatar Apr 15 '24 19:04 github-actions[bot]