getProfile

open override fun getProfile(ignoreCache: Boolean): Profile

Get profile information for the signed-in user, if any.

💾 This method alters the persisted account state.

This method fetches a `Profile` struct with information about the currently-signed-in user, either by using locally-cached profile information or by fetching fresh data from the server.

Arguments

  • ignore_cache - if true, always hit the server for fresh profile information.

Notes

  • Profile information is only available to applications that have been granted the profile scope.

  • There is currently no API for fetching cached profile information without potentially hitting the server.

  • If there is no signed-in user, this method will throw an FxaError::Authentication error.