Regenerate Authentication Token


A User can regenerate an authentication token with previously expired token using this api.

   User can re-generate an authentication token. He can use that token to authenticate all the other User APIs.

Hosts

  • URL:

How to Re-generate Authentication token?

Auth token re-generation request has to be sent to our REST endpoint i.e. /accountServices/AccountService/regenerateToken using POST method.


Sample Request

{
"authentication": {
    "customerId":"189433"
    },
"authToken":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxODk0MzMiLCJyb2xlIjoiQ3VzdG9tZXIiLCJpc3MiOiJQWiIsImV4cCI6MTY1MzQxODg2Nywia2V5IjoiaXFOa3phZWEifQ.Kvova1lFK23LQialoPeIRw2XVaL5ikenZOJXNuNe9bI"
}
                    

Sample Response

{
"customerId": "189433",
"status": "success",
"responseCode": "1",
"result": {
    "code": "200",
    "description": "Token generated successfully"
},
"authToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxODk0MzMiLCJyb2xlIjoiQ3VzdG9tZXIiLCJpc3MiOiJQWiIsImV4cCI6MTY1MzQ4NzA3NSwia2V5IjoiaXFOa3phZWEifQ.jiiS11at_LISgc3dZoRA3XGZD-uLYLHF8KLIpBMn-sk",
"timestamp": "2022-05-25 18:27:56"
}