We've got an very small existing application based on the following setup:
Application with front-end based on Angular 5 consuming a RESTful API based on PHP framework Laravel 5.6
For authentication we look into using the Laravel Passport Oauth2 component.
What you need us to provide is the following:
Enable our Angular front-end app to:
- Check if authenticated, if not show login form
- Login by user email and password
- Login and store the access and refresh token safely
- Set an option for remembering the user
- Logout and delete the tokens
- Add the access token to every server request based on an interceptor
- Autorefresh access token before it expires