Authentication
Zero-config OAuth 2.0 flow with automatic token refreshing and file/memory storage.
✔ Automatic OAuth Refresh • ✔ TypeScript First • ✔ Auto Pagination • ✔ Retry Support • ✔ Rate Limiting • ✔ Generic Request API • ✔ Enterprise Ready

npm install @vitabletech/gbp-sdkimport { GBPClient } from '@vitabletech/gbp-sdk';
const client = new GBPClient({
clientId: process.env.GOOGLE_CLIENT_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
redirectUri: 'http://localhost:3000/oauth/callback',
refreshToken: process.env.GOOGLE_REFRESH_TOKEN,
});
// Automatically handles tokens, paginates through all pages,
// and returns all accounts as a strongly typed array.
const accounts = await client.accounts.listAll();