About workflows
Workflows
You can create workflows using Kinde’s provided triggers. All you need to do is add workflow code to your repo, that can be executed when the trigger fires.
Note that workflows only show up in Kinde if you have connected your repo and there are valid workflow files found in the branch you select. Otherwise, you won’t see them.
In the Kinde infrastructure folder, you set up (e.g. [RootFolder]/environment/workflows
) create a TypeScript file. You can name it anything ending in ...Workflow.ts
.
For example if the Kinde workflow name is Custom-access-token
, the filename could be CustomAccessTokenWorkflow.ts.
Enter your code into the file in plain JavaScript or TypeScript. For details on what must be included, see the kinde/infrastructure readme file in Github.
When you commit code in your repo and then sync the code in Kinde, we will perform validity tests on the files. If the commit is valid, it will have the status of ‘Draft’ in Kinde. You can make draft workflows live.
For information on managing deployments and making a different deployment live, see the workflows management topic.