Include user image to the auth table (from initials generated to social platform generation)

Open
#967 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
go

Research direction

The issue does not identify implementation files, tests, or an entry point. Start by locating the auth-table user model and social-provider profile handling, then define how initials and provider photo URLs should be stored and exposed; done means both email/password and third-party sign-ups have the intended default image behavior.

Written by the indexing model from the issue text.

Description

auth enhancement

Feature request

Include user image to the auth table (from initials generated to social platform generation)

From AppWrite (A supabase open source alternative)
users-section4

From Firebase

// Retrieving user photo
val user = Firebase.auth.currentUser
user?.let {
    for (profile in it.providerData) {
        // Id of the provider (ex: google.com)
        val providerId = profile.providerId

        // UID specific to the provider
        val uid = profile.uid

        // Name, email address, and profile photo Url
        val name = profile.displayName
        val email = profile.email
        val photoUrl = profile.photoUrl
    }
}

// Updating user photo
val user = Firebase.auth.currentUser

val profileUpdates = userProfileChangeRequest {
    displayName = "Jane Q. User"
    photoUri = Uri.parse("https://example.com/jane-q-user/profile.jpg")
}

user!!.updateProfile(profileUpdates)
        .addOnCompleteListener { task ->
            if (task.isSuccessful) {
                Log.d(TAG, "User profile updated.")
            }
        }

Firebase and AppWrite also knows what image to show
Example:
a. if user sign up via email/password (We can use name initials as photo)
b. if it is based on 3rd party sign up e.g. Facebook or Twitter use that photo from the platform

This makes it by default user has a photo depend on what method of sign up.

Dominant language
Go
Stars
2.6k
Forks
764
Avg merge
5d 3h
Merged PRs (30d)
39

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from supabase/auth

All issues in supabase/auth

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.