DBAUTHTokenScopeError

Objective-C

@interface DBAUTHTokenScopeError : NSObject <DBSerializable, NSCopying>

Swift

class DBAUTHTokenScopeError : NSObject, DBSerializable, NSCopying

The TokenScopeError struct.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

Instance fields

  • The required scope to access the route.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull requiredScope;

    Swift

    var requiredScope: String { get }

Constructors

  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRequiredScope:(nonnull NSString *)requiredScope;

    Swift

    init(requiredScope: String)

    Parameters

    requiredScope

    The required scope to access the route.

    Return Value

    An initialized instance.