setScope

fun setScope(scope: String?): AuthOptions

Adds an OAuth2 "scope" option to this AuthOptions instance.

Return

This AuthOptions instance updated, so that other With... methods can be chained

Parameters

scope

An OAuth2 scope (value is OAuth2-provider-specific). If null, remains this instance unchanged (note that if no scope is specified within an AuthOptions instance, a minimal scope will be requested to the OAuth2 provider when passed to Webcom.authWithOAuth)