Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

208
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda