OAuthSession.hasScope

Indicates whether this session has authorization for the given scope.

class OAuthSession
final const nothrow
bool
hasScope
(
string someScope
)

Parameters

someScope string

The scope to test for. Only one scope identifier may be specified, so the string should not contain whitespace.

Return Value

Type: bool

true if someScope is listed in this session's scopes.

Meta