feat(oauth): add OAuth token support

This commit is contained in:
2025-07-22 21:10:41 +00:00
parent 4b398b56da
commit cffba39844
7 changed files with 117 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ export interface IBunqConstructorOptions {
apiKey: string;
environment: 'SANDBOX' | 'PRODUCTION';
permittedIps?: string[];
isOAuthToken?: boolean; // Set to true when using OAuth access token instead of API key
}
/**
@@ -35,7 +36,8 @@ export class BunqAccount {
apiKey: this.options.apiKey,
environment: this.options.environment,
deviceDescription: this.options.deviceName,
permittedIps: this.options.permittedIps
permittedIps: this.options.permittedIps,
isOAuthToken: this.options.isOAuthToken
});
// Initialize API context (handles installation, device registration, session)