File tree Expand file tree Collapse file tree 4 files changed +5
-13
lines changed
Expand file tree Collapse file tree 4 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import Finch from '@tryfinch/finch-api';
44
55const client = new Finch ( {
66 accessToken : 'My Access Token' ,
7- clientId : '6d28c315-5eaa-4071-8ea5-f030eb45edbc' ,
7+ clientID : '6d28c315-5eaa-4071-8ea5-f030eb45edbc' ,
88 clientSecret : 'My Client Secret' ,
99 baseURL : process . env [ 'TEST_API_BASE_URL' ] ?? 'http://127.0.0.1:4010' ,
1010} ) ;
Original file line number Diff line number Diff line change @@ -4,20 +4,12 @@ import Finch from '@tryfinch/finch-api';
44
55const finch = new Finch ( {
66 accessToken : 'My Access Token' ,
7- clientId : '4ab15e51-11ad-49f4-acae-f343b7794375' ,
7+ clientID : '4ab15e51-11ad-49f4-acae-f343b7794375' ,
88 clientSecret : 'My Client Secret' ,
99 baseURL : process . env [ 'TEST_API_BASE_URL' ] ?? 'http://127.0.0.1:4010' ,
1010} ) ;
1111
1212describe ( 'top level methods' , ( ) => {
13- test ( 'getAccessToken with redirect' , async ( ) => {
14- const response = await finch . getAccessToken ( 'my-authorization-code' , { redirectUri : '/my-app/redirect' } ) ;
15- } ) ;
16-
17- test ( 'getAccessToken without redirect' , async ( ) => {
18- const response = await finch . getAccessToken ( 'my-authorization-code' ) ;
19- } ) ;
20-
2113 test ( 'getAuthUrl' , async ( ) => {
2214 // TODO
2315 } ) ;
Original file line number Diff line number Diff line change 11// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22
33import Finch from '@tryfinch/finch-api' ;
4- import { toBase64 } from '@tryfinch/finch-api/core ' ;
4+ import { toBase64 } from '@tryfinch/finch-api/internal/utils ' ;
55
66const finch = new Finch ( {
77 accessToken : 'My Access Token' ,
8- clientId : '4ab15e51-11ad-49f4-acae-f343b7794375' ,
8+ clientID : '4ab15e51-11ad-49f4-acae-f343b7794375' ,
99 clientSecret : 'My Client Secret' ,
1010 baseURL : process . env [ 'TEST_API_BASE_URL' ] ?? 'http://127.0.0.1:4010' ,
1111} ) ;
Original file line number Diff line number Diff line change 1- import { fromBase64 , toBase64 } from '@tryfinch/finch-api/core ' ;
1+ import { fromBase64 , toBase64 } from '@tryfinch/finch-api/internal/utils ' ;
22
33describe . each ( [ true , false ] ) ( 'with Buffer (Buffer is %s)' , ( buffer ) => {
44 let originalBuffer : BufferConstructor ;
You can’t perform that action at this time.
0 commit comments