Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Authenticate users via Dropbox OAuth 2.0 with createDropboxProvider. Covers App Console setup, redirect URI, and scopes for account info and file metadata access.
createDropboxProvider
https://your-app.com/api/theauth/auth/oauth/callback/dropbox
import { createTheAuth } from '@glinr/theauth'; import { oauth, createDropboxProvider } from '@glinr/theauth/auth'; const theauth = await createTheAuth({ database: { provider: 'sqlite-native', url: 'theauth.db' }, secret: process.env.THEAUTH_SECRET!, baseUrl: 'https://your-app.com/api/theauth', auth: { session: { secret: process.env.THEAUTH_SECRET! } }, plugins: [ oauth({ providers: { dropbox: createDropboxProvider({ clientId: process.env.DROPBOX_CLIENT_ID!, clientSecret: process.env.DROPBOX_CLIENT_SECRET!, }), }, }), ], });
DROPBOX_CLIENT_ID=... DROPBOX_CLIENT_SECRET=...
account_info.read
files.metadata.read
files.content.read
/auth/oauth/authorize/dropbox
/auth/oauth/callback/dropbox