These are chat archives for dareid/chakram

1st
Aug 2018
Walter Hector Lijo
@woolter
Aug 01 08:02
@manudee can you post an example of the response? As I can see what are you doing is ok, but without a working example I cannot help you
manudee
@manudee
Aug 01 14:53
@woolter here u go. I am trying to retrieve the access token as below using the dot notation (resp object as i mentioned above). However the console logs give me the entire string starting from the "Cookie=" . How would get the "valueofAccessToken" ?
it('should retrieve the access token', function(){

var loginDataPositive = {
                    "email": testData.email,
                    "password": testData.password,
                    "scope": testData.scope

                };


    return chakram.post(config.url + '/auth/token', loginDataPositive)
                .then(function(response){    

                    console.log("token ");
                    console.log((response.jar._jar.store.idx['somepathvalue]['basePath'].access_token));
                    console.log((response.jar._jar.store.idx['somepathvalue]['someNewPathValue'].refresh_token));

                    chakram.setRequestDefaults({jar:true});

                    })


})