How to display toast without press key in ionic 5

I have search this topic “toast” in ionic 5, most of example uses press a button to display a toast.
Is there a way to automatic toast in home page when user move from login page into the home page.

below is my toast,

async showToast() {
    await this.toastCtrl.create({
      message: "Hey! it's a toast",
      duration: 2000,
      position: 'middle',
      buttons: [{
        text: 'OK',
        handler: () => {
          console.log("ok clicked");
    }).then(res => res.present());

You use use ngOnInit or ionViewDidEnter?

The showToast method can be called from there