DBAccessToken

@interface DBAccessToken : NSObject

A Dropbox OAuth2 access token.

Stores a unique identifying key for storing in DBKeychain.

  • The OAuth2 access token.

    Declaration

    Objective-C

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

    Swift

    var accessToken: String { get }
  • uid

    The unique identifier of the access token used for storing in DBKeychain. Either the account_id (if user app) or the team_id if (team app).

    Declaration

    Objective-C

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

    Swift

    var uid: String { get }
  • DBAccessToken full constructor.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAccessToken:(nonnull NSString *)accessToken
                                            uid:(nonnull NSString *)uid;

    Swift

    init(accessToken: String, uid: String)

    Parameters

    accessToken

    The OAuth2 access token retrieved from the auth flow.

    uid

    The unique identifier used to store in DBKeychain.

    Return Value

    An initialized instance.