Skip to content

Function: isScopeError()

ts
function isScopeError(value): value is ScopeError;

Defined in: src/core/errors/predicates.ts:132

Stable

The token is valid but lacks a scope this endpoint requires.

Distinct from isAuthError because the remedy is different: refreshing cannot help, the app needs the scope added and the user has to consent again. Confluence reports it as a 401 with Unauthorized; scope does not match.

Parameters

ParameterType
valueunknown

Returns

value is ScopeError