Firebase Dart Admin Auth SDK
  • Firebase Dart Admin Auth SDK
    • Introduction
    • Getting Started
      • Installation
      • Initialize Firebase
    • User Management
      • Create User With Email and Password
      • Update Current User
      • Sign In With Credential
      • Sign In With Custom Token
      • Sign in with Email Link
      • Sign In Anonymously
      • Sign Out
      • Sign In With Redirect
      • Sign In With Popup
      • Sign in with Phone Number
      • Sign In With Email and Password
    • User Profile & Data
      • Update Profile
      • Get ID Token
      • Get ID Token Result
      • Reload user
      • Delete User
    • Email & Password Actions
      • Apply Action Code
      • Send Email Verification
      • Send Password Reset Email
      • Update Password
      • Verify Before Update Email
      • Verify Password Reset Code
      • Send Password Reset Email
      • Send Sign-in Link To Email
      • Confirm Password Reset
      • Check Action Code
    • Authentication State
      • Before Auth State Changed
      • On ID Token Changed
      • On Auth State Changed
    • Credential Management
      • Is Sign In With Email Link
      • Unlink Provider
      • Link With Credential
      • Fetch Sign In Methods For Email
      • Link With Popup
      • Link With Phone Number
    • Initialization & Configuration
      • Set Persistence
      • Connect Emulator
      • Use Device Language
      • Set Language Code
      • Initialize Recaptcha Config
      • Get Auth
      • Initialize Auth
    • Multi-Factor Authentication
      • Get Multi-Factor Resolver
    • OAuth and Third-party Auth
      • Generate Custom Token
      • Get Redirect Result
      • Revoke Access Token
    • Utility Functions
      • Get Additional User Info
      • Parse Action Code URL
    • Examples and Tutorials
    • Contributing
    • FAQs
Powered by GitBook
On this page
  1. Firebase Dart Admin Auth SDK
  2. User Profile & Data

Update Profile

Use the updateProfile method to update the current user's profile information, such as display name and photo URL.

Method

final user = await FirebaseApp.firebaseAuth?.updateProfile(
  displayName,
  displayImage,
  idToken,
);

Parameters

  • displayName (String): The new display name for the user.

  • displayImage (String): The new photo URL for the user.

  • idToken (String?): The optional ID token to validate the request.

Return

  • User?: Returns the updated User instance with the new profile information.

This method updates the current user's display name and photo URL, returning the updated user profile.

PreviousUser Profile & DataNextGet ID Token

Last updated 9 months ago