Skip to main content
Version: 2.1.2

DAVCredentials

export type DAVCredentials = {
username?: string;
password?: string;
clientId?: string;
clientSecret?: string;
authorizationCode?: string;
redirectUrl?: string;
tokenUrl?: string;
accessToken?: string;
refreshToken?: string;
expiration?: number;
digestString?: string;
customData?: Record<string, unknown>;
};

refer to this page for more on what these fields mean

  • username basic auth username
  • password basic auth password
  • clientId oauth client id
  • clientSecret oauth client secret
  • authorizationCode oauth callback auth code
  • redirectUrl oauth callback redirect url
  • tokenUrl oauth api token url
  • accessToken oauth access token
  • refreshToken oauth refresh token
  • expiration oauth access token expiration time
  • digestString string used for digest auth
  • customData custom data used for custom auth, can be anything