Level 122
there are no such tokens? there is a csrf token and a session cookie.
You can obtain an access token if you implement Passport but it doesn't happen automatically
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
When I'm logging in, it seems my data response different I'm confused cause I'm looking for access_token and refresh_token but the only available here X-CSRF-TOKEN and X-XSRF-TOKEN
BTW, I'm using vue js and I want to store my access_token to localStorage
```
export default{
$validates: true,
data(){
return{
login:{
username : '',
password : '',
remember : ''
},
disabled: 0,
indeterminate : false,
showLoader: false
}
},
methods:{
submit(){
this.showLoader = true;
this.$validator.validateAll().then((result) => {
if(result){
console.log(this.login.username);
/*axios.post('/prod/login', this.login)
.then(response => console.log(response));*/
axios({
method:'post',
url : '/prod/login',
data: {
email : this.login.username,
password : this.login.password,
remember : this.login.remember
},
responseType: 'JSON'
})
.then(response=>{
if(response.status == 200){
console.log(response);
}
})
.catch(error => {
if (error.response) {
console.log(error.response);
}
});
console.log('submited');
return;
}
console.log('mali e');
});
}
},
mounted(){
}
}
```
Please or to participate in this conversation.