Postman

Title Code
token dynamic set
Environment: create a project name env
create tokan variable name: userToken
 
Scripts code
var res = pm.response.json();
var token = res.data.access_token;
pm.environment.set('userToken', token);

use: another request
Authentcation/Auth Type/ Bearer token  : {{userToken}}