Libreria para verificar tokens de autenticación
npm install token-verify-attjson
{
"url_service_auth": "https://gateway-am-uat.mx.att.com:8243/CustomToken/2.0.0/oauth2/token",
"client_id": "SkO#######",
"client_secret": "4ovlZx#######",
"grant_type": "password",
"username": "att.userAtt#######",
"password": "D0O42UBqkN2CyIjOs#########",
"token_key" : "authToken",
"exp_key": "expires_at"
}
`
Response ejemplo
`json
{
"authData": {
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.KMUFsIDTnFmyG3nMiGM6H9FNFUROf3wh7SmqJp-QV30",
"expires_in": 3600,
"expires_at": 1769549185397,
"token_type": "Bearer",
"scope": "default"
}
}
``