Answer the question
In order to leave comments, you need to log in
Laravel 5.3 Passport (401: Unauthorized) OAuth personal token?
Sending:
authorization: Bearer token
accept: application/json
accept-encoding: gzip, deflate
accept-language: en-US,en;q=0.8
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
{"error":"Unauthenticated."}
Answer the question
In order to leave comments, you need to log in
export const ipDomain = 'http://animeserver/'
// export const ipDomain = 'http://shelomanovdima.toprf.net/'
export const clientId = 1
export const clientSecret = 'shuEn7TZOoPDJpsr649GN0wrwchXCvlJWzj4tBM4'
export const getHeader = function() {
var tokenData = JSON.parse(window.localStorage.getItem('authUser'));
var header = {
'Accept': 'application/json',
'Authorization': 'Bearer ' + tokenData.access_token
}
return header;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question