AWS cognito accessibility

0

Before signing in I want to check whether the aws cognito is accessible or down. Is there any API or way to get the proper response. I am using cognito with reactJS

Varshil
demandé il y a un mois220 vues
1 réponse
1

It's unlikely Cognito will be down. To see if the service is reachable, you should just make requests as normal or you can do a fetch on the openid endpoint for the service.

For Cognito user pools that is (replace <region> and <userPoolId>):

https://cognito-idp.<region>.amazonaws.com/<userPoolId>/.well-known/openid-configuration

For Cognito identity pools that is (replace <region>):

https://cognito-identity.<region>.amazonaws.com/.well-known/openid-configuration

There is no guarantee your requests will succeed after hitting these urls successfully however.

perpil
répondu il y a un mois
profile picture
EXPERT
vérifié il y a un mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions