Actions Typescript

Hello!

I’ve been trying the actions editor that the help says that it features typescript, but I can’t make it work. Is there any way to write actions in typescript?

I’ve written this action with Node16 and it does not compile, however the editor understands perfectly the interfaces of the objects from Auth0 for example:

Types that work because they are from Auth0

Types that don’t work because they are from a dependency:

Thank you for your help

4 Likes

+1 to this. We have migrated our actions to Typescript and have them in source control and are very much in need of these types. What we have resorted to doing in the mean time is combing through the documentation pages with the assist of ChatGPT and generating our own types files.

If we complete this before Auth0 provides something official, happy to open source them and post here. It would be great if we could get something official from Auth0 though

1 Like

Hi @juanluis.vega,

Welcome to the Auth0 Community!

Looking through the docs it states that Actions do not support Typescript.

Not sure why the editor says that Typescript is supported, I believe it got mistaken with Intellisense. I will raise this matter internally.

If you have any other question for us feel free to reach out.

Have a good one,
Vlad

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

Hey team! :waving_hand:

Since this topic touches Auth0 Actions, quick heads-up that we’re hosting an Ask Me Anything dedicated to Actions with Gaston Danilo Asis Sanchez, Senior Technical Product Manager. We’ll cover practical usage, new capabilities like Transaction Metadata and Actions Types, plus a peek at what’s next. :sparkles:

  • Submit questions now through Aug 26 :writing_hand:
  • Get detailed written answers live on Aug 27, 9–11 AM PT :speech_balloon:

Earn community points + a badge :trophy:. If you’re exploring how Actions can streamline your auth flows, this is a great time to get direct guidance from the team.
Join the AMA & drop your questions here: August 27 Auth0 Community Ask Me Anything: Actions

Dawid