Real-time Webtask Logs Extension

The Real-time Webtask Logs extension displays all logs in real-time for the custom code in your account. This includes all console.log output and exceptions. Console.logs are helpful if you have issues with database scripts. You can view the results from your database scripts such as success messages, error messages, and console.log() statements.

To learn more, see Real-time Auth0 Webtask Logs in Auth0's Github repository.

Configure the extension

To install and configure this extension:

  1. Navigate to the Extensions page of the Auth0 Dashboard, and click the Real-time Webtask Logs box. The Install Extension window opens.

  2. Click the Install button.

Use the extension

To view your logs:

  1. Navigate to Auth0 Dashboard > Extensions, and select Installed Extensions.

  2. Select Real-time Webtask Logs.

To view the logs in fullscreen mode, click Full Screen Mode. To exit fullscreen mode, press the Escape key.

To clear all logs, click Clear Console.

Debug an Action

The following example describes how to create a generic Hello World Action, run it, and use the Real-time Webtasks Logs extension to see the results.

  1. Follow the instructions to Write Your First Action to write a Post Login Action using the code example below:

    /**
    * Handler that will be called during the execution of a PostLogin flow.
    *
    * @param {Event} event - Details about the user and the context in which they are logging in.
    * @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.
    */
    exports.onExecutePostLogin = async (event, api) => {
      console.log('Hello World!');
    };
    
    /**
    * Handler that will be invoked when this action is resuming after an external redirect. If your
    * onExecutePostLogin function does not perform a redirect, this function can be safely ignored.
    *
    * @param {Event} event - Details about the user and the context in which they are logging in.
    * @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.
    */
    // exports.onContinuePostLogin = async (event, api) => {
    // };

    Was this helpful?

    /

  2. Open a new tab, navigate to Navigate to Auth0 Dashboard > Extensions, and select Installed Extensions.

  3. Select Real-time Webtask Logs. You are now viewing logs real-time and are ready to try your Action.

  4. Once the stream is connected, switch to your Action Editor and run a test.

  5. Your results should appear in real-time in your Real-time Webtasks Logs extension.

Learn more