Rota para refresh de token, encaminhando a solicitação ao Keycloak.
Requisição
Parâmetros Bodyapplication/json
{
"refresh_token": "{{refresh_token}}"
}
Códigos de solicitação
curl --location --request POST '/auth/refresh' \
--header 'Content-Type: application/json' \
--data-raw '{
"refresh_token": "{{refresh_token}}"
}'
Respostas
application/json {
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJwbVpIUFg0SkFobjFLVTJINVB1ell3TUxYR2FrSnhvbTRSQlBFaFR3OW5FIn0...",
"expires_in": 300,
"refresh_expires_in": 1800,
"refresh_token": "eyJhbGciOiJIUzUxMiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI1MTQ0YThmOS1iNjExLTQ5NGEtODRkMy1lODU0YzZlN2ExZGIifQ...",
"token_type": "Bearer",
"not-before-policy": 0,
"session_state": "e0e6aef4-093c-491c-b02c-32cc542ffa2c",
"scope": "email profile"
}
Modificado em 2025-01-17 18:02:40