Native and token-based authentication
Authenticate with API using email/password, or token-based authentication.
Leverage Directus' user system or your own SSO and easily build user accounts into your application with robust permissions.
Connect directly to any database and get an intuitive GUI for managing user accounts and permissions.
Our robust roles & permissions system allows filter rules, custom validation, field-level permissions, IP allow-lists, and configurable public access.
const user = await client.request(
createUser({
email: 'user@example.com',
password: 'hunter2'
})
);
Create, update and read user data, and login, logout, and refresh access tokens all with Directus' simple API.
const { subscription } = await client.subscribe('messages');
for await (const item of subscription) {
console.log('subscription', { item });
}
/*
{
"type": "subscription",
"event": "create",
"data": [{
"id": 1,
"text": "Hello World"
}]
}
*/
Directus Realtime supports multiple authentication schemes, and fully respects role-based access control.
If the team scales from 100 to 300 people, it's not a problem at all. Whereas setting up new permissions used to take hours, with Directus, it’s a two-minute change.
Wayne Eldridge
Founder, Enamic
Whether you specialize in frontend, backend, or fullstack, you'll get a suite of dev tools that'll make you even more efficient.
Building out the backend with Directus was really fast, and the platform has everything we needed – security, users, roles, permissions and more.We simply could not have delivered this amount of value for our customers with custom development only.
Martijn Boland
Co-Founder, Taiga
Step into a world of seamless and secure authentication with Directus Auth. Protect your assets and provide users a friction-less login experience.