Skip to content

basalt / drives-microsoft/src / microsoftDrive

Function: microsoftDrive() ​

> microsoftDrive(options): MicrosoftDrive

Defined in: drives-microsoft/src/index.ts:1023

Builds the Microsoft OneDrive / SharePoint adapter.

ts
drivesPlugin({
  providers: [
    microsoftDrive({
      clientId: env.MS_CLIENT_ID,
      clientSecret: env.MS_CLIENT_SECRET,
      tenant: 'common',
    }),
  ],
  keys: [{ id: '2026-09', key: env.DRIVES_ENCRYPTION_KEY }],
  secret: env.APP_SECRET,
})

Parameters ​

options ​

MicrosoftDriveOptions

Returns ​

MicrosoftDrive

Released under the MIT License.