Skip to content

[FEATURE] auth - support multi-user (not just 1 admin + 1 user) #784

Description

@nktnet1

Is your feature request related to a problem?

For a team with 3 or more members, having just 2 account can be restrictive. Passwords has to be shared (which means they require changing when a member leaves), and the audit log cannot show which member perform the action if they share the same account.

This may also open up opportunities for things like RLS down the line?

Describe the solution you'd like

Only the admin account needs to be created on init. User accounts can then be created from within the app afterwards.

Describe alternatives you've considered

Deploying multiple instances of libredb-studio (not ideal).

Use Case

Providing access to more than 2 users.

Implementation Notes (Optional)

Migrate the existing authentication framework to Better Auth:

The existing TOTP implementation can be changed to use the two factor plugin:

This is a better user experience than needing to generate and extract the secret to put in our environment variables like the PR #779 (addressing #777).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions