Okay
  Print

First Check the Laravel instruction below

## Getting Started

The procedure to getting started with an isomorphic laravel starter kit. We have used Laravel default `Auth` with `auth-jwt`.

- `composer update`
- `Rename your .env.example to .env`
- `Fill your .env files database credentials [DB_DATABASE, DB_USERNAME, DB_PASSWORD]`
- `php artisan migrate`
- `sudo php artisan serve --port=9000`
Now you are good to go

If you want to create your own secret then run the below command
- `php artisan jwt:secret`

## Routes

- `Route::post('register', '[email protected]');`  //generate token
- `Route::post('login', '[email protected]');`  //generate token
- `Route::post('logout', '[email protected]');` // logout will make the token to blacklisted you have to create - token again from login route
- `Route::post('refresh', '[email protected]');` //can refresh token with existing token
- `Route::post('secret/test', '[email protected]');`


In the React code do the below change

In order to get the valid token you will have to do some code here.

you will have to make call to the /login endpoint from the signin page with user: [email protected] password: demodemo. this will give you the login token which needed to be stored in the localstorage in same key (id_token)  which will use to validate our token in the /secret/test  endpoint calling when you will click that Check auth status button.