When I try to use the use functions in the fronten...
# support-questions-legacy
g
When I try to use the use functions in the frontend (Angular)
Copy code
ts
// login function
  async login(email: string, password: string) {
    console.log(
      await ThirdPartyEmailPassword.emailPasswordSignUp({
        formFields: [
          {
            id: 'email',
            value: email,
          },
          {
            id: 'password',
            value: password,
          },
        ],
      })
    );
  }
I get 404 error, stating that the route in the backend (NestJS) does not exist
POST http://localhost:3333/api/signup 404 (Not Found)
. What am I supposed to do, in order for the backend to to the correct think on those routes?
r
have you followed the nestjs integration guide for thirdpartyemailpassword recipe?
g
r
right. So you setup the wrong recipe on the backend
You want to setup thirdpartyemailpassword recipe on the backend as well. Since you are using thirdpartyemailpassword on the frontend
g
Ok, can you send a link to the guide?
r
g
Will do, thx
It works now
r
awesome
4 Views