Skip to Content
ConfigurationAuthentication

Authentication

Protect the embedded dashboard with username and password credentials.

Authentication is required by the SDK constructor. The dashboard uses the values from auth.username and auth.password to create local sessions.

const devtools = new ServerDevTools({ auth: { username: process.env.SERVER_DEVTOOLS_USERNAME!, password: process.env.SERVER_DEVTOOLS_PASSWORD!, }, });

If either value is missing, construction throws ServerDevTools auth username and password are required. Keep credentials in environment variables. The SDK currently provides username/password authentication; rate limiting or brute-force protection and IP allowlists or network restrictions are planned for a later release.

Last updated on