Skip to content

Commit 0013a75

Browse files
authored
Merge pull request #8 from aipotheosis-labs/feat/expose_oauth2_tokens
expose more oauth2 credentials; remove unnecessary code
2 parents 70f25c6 + 728ea76 commit 0013a75

File tree

6 files changed

+6492
-32
lines changed

6 files changed

+6492
-32
lines changed

__tests__/resource/linked-accounts.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ describe('LinkedAccounts integration tests', () => {
166166
const testCases = [
167167
{
168168
securityScheme: SecurityScheme.OAUTH2,
169-
mockCredentials: { access_token: 'test-oauth2-token' },
169+
mockCredentials: { access_token: 'test-oauth2-token', expires_at: 1715136000, refresh_token: 'test-refresh-token' },
170170
appName: OAUTH2_APP_NAME,
171171
},
172172
{
@@ -206,9 +206,7 @@ describe('LinkedAccounts integration tests', () => {
206206

207207
// Verify security credentials based on scheme
208208
if (securityScheme === SecurityScheme.OAUTH2) {
209-
expect(retrievedAccount.security_credentials?.access_token).toBeDefined();
210-
} else if (securityScheme === SecurityScheme.API_KEY) {
211-
expect(retrievedAccount.security_credentials?.secret_key).toBeDefined();
209+
expect(retrievedAccount.security_credentials).toBeDefined();
212210
} else {
213211
expect(retrievedAccount.security_credentials).toBeUndefined();
214212
}

0 commit comments

Comments
 (0)