I am using Laravel 7.* for my API and Angular 9 for my frontend. I am having trouble figuring out how to handle Password Expiration responses from my api. My current auth workflow is this: Angular POST /login request to API with an expired password API receives POST request, authenticates the credentials. If authenticated, API checks to see if the
Tag: angular
Why Laravel Pusher is not working in server
I am using Pusher in my Web Application. My backend is built with Laravel & Frontend is built with Angular 10. Everything works perfectly in my local machine. But in the server it is not working. …
What status code for ressource that may or may not exist on REST API
I am working on a one page web application for an online shop in Angular which will rely on a REST API handled by Symfony. One of the first request I make is that I need to know if the customer has an active cart or not. So I have a route /get-user-cart which returns null if the user has
Angular: Material Autocomplete populated with api data returns JSON value
I am new to angular and am working on a small ledger application. In it, the user has to select customer from a material autocomplete field which is populated with data from an API. Like so: PHP Back-…
Passing a Slim 3 Exception response to an Angular application
I’m creating an authentication system that uses Slim 3 PHP on the back-end and Angular on the front-end. So far I’ve managed to have it so a user can fill out a form on the frontend and send a post …
Ionic 3 Uncaught (in promise): [object Object]
I am new to Ionic 3 and mobile development. I am trying to connect a MySQL DB to my Ionic app and a PHP Restful API. I tested the API with Postman and it is working just fine, in order to implement it …
Laravel 5.4 Passport: unsupported_grant_type
Hello I try to do a web application and I have a problem. When I request the token from /oauth/token I receive this response: And my code is: And the request header: Response header: Post data: I don’t have any other detail. Answer You need to install a password client for Passport. Assuming you’ve installed and configured Passport, to generate