onContinuePostLogin not triggering

Hi team,

I created a custom form for user to fill out upon their first login. I have tested this, the form will render and user will be redirected to home page, but the onContinuePostLogin will not trigger. Anyone has encountered this before? Below is my script for the post login trigger:

exports.onExecutePostLogin = async (event, api) => {
  const FORM_ID = 'ap_hHhFLYxWMj9NC8rThKTEec';
  if (
    !event.user.user_metadata.employee_name ||
    !event.user.user_metadata.roles || 
    !event.user.user_metadata.employee_id ||
    !event.user.user_metadata.sign_up_key
  ) {
    api.prompt.render(FORM_ID);
  }
};

exports.onContinuePostLogin = async (event, api) => {
  const axios = require("axios");
......

Hi @PaulLiuEngineering

Have you tried debugging the action or to console log some values inside the onContinuePostLogin trigger to see if any of them appear when using the Action Logs inside the Dashboard?

Once the form is submitted, the onContinuePostLogin should trigger. Do you see any logs inside your tenant which would point that the action ran successfully?

Could you provide me through a DM the tenant name so I can take a look myself?

Kind Regards,
Nik

I have tried doing that but nothing really happened. I also noticed that the there are some lags in terms of deploying newer version of the flow sometimes. But let me DM the tenant name.