Enables two-factor authentication for the authenticated user. This method requires the user's password and the code generated by the 2fa app (e.g. Google Authenticator). *
The code to enable 2fa and user's password
Get the account details of the authenticated user.
Generates string for 2fa QR code which can be used to set up 2fa in Pterodactyl.
Module for accessing Pterodactyl client account endpoints. This module provides methods to access account details, 2fa, update account information, etc.
Example