Features: App Building
Add Users with Build In Authentication Options
Adding User Authentication to your app is simple with Fine.
Once you’ve activated your backend and database, simply prompt the agent, “Add a Login and Sign Up Page”.
Login UI components are already included, as is the authentication system.
You can customize the design by prompting the agent.
Currently, the default authentication method supported is username + password.
Fine uses the fine@/fine-client
SDK package to manage auth in your app. The package is pre-installed in all New Projects.
User Types
To create different types of users, use a prompt such as:
Create a new data type called “user_role” with the following values
- <Role Name>
- <Role Name>
- <Role Name>
Create a table called “profiles” with the following columns:
- Id (uuid)
- Role (user_role)
- created_at (timestamptz)
Make the default value of the user_role column in the profiles table <default value you choose>
This will create a table that assigns a type called “role” to all users. Based on the roles, you’ll be able to define permissions.
Social Authentication
Soon we’ll be releasing support for social authentication methods such as login with Google.