Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

207
Vistas
Amazon Cognito: invalid_client when refreshing token

I'm trying to get a new accessToken and idToken by hitting the endpoint oauth2/token.

I got the refresh token from cognitoUser.authenticateUser() method in amazon-cognito-identity-js

Here's my sample request in postman:

URL (seems fine)

URL

BODY (seems fine) Postman body

HEADERS (not sure) Authorization

Authorization: Basic Base64(client_id) - i used btoa() function in JS

Note: The pool does not have a client secret no client secret

Problem: When I test this out, this is the response invalid

I believe I supplied the right data as documented here: https://docs.aws.amazon.com/cognito/latest/developerguide/token-endpoint.html

grant_type: refresh_token
client_id: required if does not have a secret
refresh_token: refresh token here

Is there something that I'm missing or something I did wrong? I am not very familiar with the flow. Any help is greatly appreciated!

about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda