$customHeader
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Method description

Get a fresh token using a valid JWT token.

Request Data

{
	"email": "email@email.com",
	"token": "xxxxxxxxxxxxxxx"
}
NameTypeOptionalDescription
emailstringfalseuser's email who wants to log in
tokenstringfalseuser's token

Response format and codes

HTTP codedescription
200token refreshed
400bad params
401token error
404user not exists


On successful request, the service should return a response similar to this:

{
	"user_token": "user_api_token"
}


On a failed login attempt the response is like the following example:

{
    "err": "specific_error"
}

Dependencies

service namepurpose
MongoDBsimple database storage
  • No labels