Passport Personal Access Token Api oauth/personal-access-tokens not working
I use Laravel 6 with Passport and React Frontend. I can generate Personal Access Token for each user when login. but when I implement a user acount panel by calling http://myweb.test/oauth/personal-access-tokens, I get The GET method is not supported for this route Error. I tried other JSON Api endpoints such as /oauth/scopes, none of these working.
const instance = axios.create({ baseURL: "http://myweb.test:8080", timeout: 1000, headers: { Authorization: "Bearer " + accessToken } });
useEffect(() => { console.log(accessToken); instance .get("/oauth/clients") .then(res => console.log(res)) .catch(err => console.log(err)); }, []);
I am using React so I did not install the Vue components. Could anybody can give me some suggestions on how to implement Passport using React?
Any suggestions is appreciated.
Please or to participate in this conversation.