Parse Authtoken from response body

Hello,

Im trying to parse bearer-token from response body, although body doesnt have any variable, which i can grab. Just bare text ( on pic)

I’ve already tried: var jsonData = JSON.parse(responseBody)
postman.setEnvironmentVariable(“authtoken”, jsonData.token);

but it does not work. Asking for help to parse this bare text and then set it as variable in env

Have a look at the following and see if that answers your question.

Set a variable from raw text response - Just getting started - Postman