Resume existing session
POST
/session/resume
const url = 'http://localhost:3001/session/resume';const options = {method: 'POST', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3001/session/resume \ --header 'Authorization: <Authorization>'Resume a session using JWT authentication instead of wallet signature
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Session resumed successfully
Media typeapplication/json
object
address
Hex-encoded address
string
message
string
success
boolean
username
Username (loaded from DB for returning users)
string
Examplegenerated
{ "address": "example", "message": "example", "success": true, "username": "example"}Unauthorized - invalid or expired JWT
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Session not found
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}