Skip to content

Commit

Permalink
Ignore migrations, pass credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
DaneEveritt committed May 22, 2022
1 parent 56f15c1 commit be88e4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/Providers/AuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ class AuthServiceProvider extends ServiceProvider
Server::class => ServerPolicy::class,
];

/**
* Register any application authentication / authorization services.
*/
public function boot()
{
Sanctum::usePersonalAccessTokenModel(ApiKey::class);

$this->registerPolicies();
}

public function register()
{
Sanctum::ignoreMigrations();
}
}
1 change: 1 addition & 0 deletions resources/scripts/api/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import axios, { AxiosInstance } from 'axios';
import { store } from '@/state';

const http: AxiosInstance = axios.create({
withCredentials: true,
timeout: 20000,
headers: {
'X-Requested-With': 'XMLHttpRequest',
Expand Down

0 comments on commit be88e4e

Please sign in to comment.