Identities
A guide from Supabase
Apps on Plentiful run on Supabase's open-source database, sign-in, file storage and live updates, so most of this guide applies. The differences: your app reaches its database through its own server — not Supabase's data API (supabase.from(…)) — there are no Edge Functions (your app's server does that work), and scheduled work uses Jobs. Where it says "Supabase dashboard", use your app's Dashboard. Ask the builder when in doubt.
An identity is an authentication method associated with a user. Supabase Auth supports the following types of identity:
- Phone
- OAuth
- SAML
A user can have more than one identity. Anonymous users have no identity until they link an identity to their user.
The user identity object#
The user identity object contains the following attributes:
| Attributes | Type | Description |
|---|---|---|
| provider_id | string | The provider id returned by the provider. If the provider is an OAuth provider, the id refers to the user's account with the OAuth provider. If the provider is email or phone, the id is the user's id from the auth.users table. |
| user_id | string | The user's id that the identity is linked to. |
| identity_data | object | The identity metadata. For OAuth and SAML identities, this contains information about the user from the provider. |
| id | string | The unique id of the identity. |
| provider | string | The provider name. |
string | The email is a generated column that references the optional email property in the identity_data | |
| created_at | string | The timestamp that the identity was created. |
| last_sign_in_at | string | The timestamp that the identity was last used to sign in. |
| updated_at | string | The timestamp that the identity was last updated. |