android-components / mozilla.components.service.fxa / FirefoxAccount / getProfile

# getProfile

`fun getProfile(ignoreCache: Boolean): Deferred<Profile>` (source)

Fetches the profile object for the current client either from the existing cached account, or from the server (requires the client to have access to the profile scope).

### Parameters

`ignoreCache` - Fetch the profile information directly from the server

Return
Deferred<Profile> representing the user's basic profile info

`fun getProfile(): Deferred<Profile>` (source)

Convenience method to fetch the profile from a cached account by default, but fall back to retrieval from the server.

Return
Deferred<Profile> representing the user's basic profile info