In the tutorial - https://medium.com/@nickwang_58849/i-got-the-following-error-after-following-the-steps-82757cfaf9f0, it uses amplify-authenticator of npm package @aws-amplify/auth to login and register.
auth.component.html has just one line,
<amplify-authenticator></amplify-authenticator>
auth.component.ts
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-auth',
templateUrl: './auth.component.html',
styleUrls: ['./auth.component.css']
})
export class AuthComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
However, I will need to have a customized login (will need to add some required attributes when registering. And need to style the login/register controls). How to do it?
Is there any example of user write the login UI and just call the authentication (by amplify?) to log in cognito?