Recipe
This recipe shows how to set up a two-factor authentication (2FA) flow in Intuned online IDE.Prerequisites
1
Enable auth session in `intuned.json`
Make sure authentication sessions are enabled.
2
Install the two-factor authentication package
Add the required dependency to your project:
Code implementation
Below is a full example of how to automate a create auth session api to login using Intuned + Playwright + TOTP.Related links
Auth sessions
Intuned auth sessions
Cookbook (Python)
Python TOTP authentication example in the Intuned Cookbook
Cookbook (TypeScript)
TypeScript TOTP authentication example in the Intuned Cookbook