Why would JWTAuth not accept Barer in the token, laravel?

1

I currently have a token authorization with the JWTAuth library, this generates the token correctly when my credentials are correct.

The problem arises when I try to send the token from AngularJS, the method is done in the following way:

var config = {
                'Authorization': token,
            };
        console.log(config);
        $http.get(server+'ws/usuarios',config).success(function(datas){

            $scope.datas = datas.records;
});

When I try to send the token through postman it works for me:

but in the browser console, it sends the token in the header in the following way:

adds the word Bearer, when performing the test from postman, prefixing the word bearer effectively does not return anything, that is, it shows the message that the token is not correct:

Please, how can I remove the word Bearer or another solution, I am new to this issue of sending tokens.

Thank you very much.

    
asked by JG_GJ 24.09.2018 в 05:04
source

0 answers