User Authentication
With Squadbase’s built-in authentication, you can enable user sign-in, management, and role-based access control—without writing any code.
Squadbase provides built-in authentication so that you can handle user sign-in, management, and role-based access control without adding code. For apps whose visibility is not set to Public, only members added to the Squadbase team and invited to the project can access the application.
Adding members
To give someone access to an app deployed on Squadbase, follow these steps:
- From the dashboard Settings page, invite the member to your Team.
- The member accepts the invitation and joins the team.
- From the Project settings page, add the member to the project and assign a project role.
Managing member permissions
Squadbase offers two scopes of roles:
- Team roles – govern actions at the team level.
- Project roles – govern actions within a specific project.
Configuring team roles
Team roles are managed from the dashboard’s Settings page. Available roles:
- Admin – Can change settings for any project.
- Developer – Can create new projects, invite team members, and change project settings.
- Contributor – Can deploy to projects they’ve been invited to.
- Viewer – Can view projects they’ve been invited to.
Configuring project roles
Project roles are managed in the Settings tab of each project’s dashboard page.
You can use any string you like for a project role. In code, you can access the assigned roles like this:
Important: Retrieving user information only works after the app has been deployed to Squadbase.
For local development, provide mock data:
For details on the authentication API, see REST API. SDKs are also available for each framework:
pypi.org
Streamlit Squadbase SDK
SDK for retrieving Squadbase auth data in Streamlit.

npm
Next.js Squadbase SDK
SDK for retrieving Squadbase auth data in Next.js.

npm
JavaScript Server SDK
SDK for retrieving Squadbase auth data in JavaScript.