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

# beginOAuthFlow

`fun beginOAuthFlow(scopes: Array<String>, wantsKeys: Boolean): Deferred<String>` (source)

Constructs a URL used to begin the OAuth flow for the requested scopes and keys.

### Parameters

`scopes` - List of OAuth scopes for which the client wants access

`wantsKeys` - Fetch keys for end-to-end encryption of data from Mozilla-hosted services

Return
Deferred that resolves to the flow URL when complete