• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

teableio / teable / 9838304390

08 Jul 2024 10:57AM CUT coverage: 17.985% (-0.08%) from 18.067%
9838304390

Pull #701

github

web-flow
Merge 15aca5e3b into 99e559c9c
Pull Request #701: feat: oauth revoke

1381 of 2780 branches covered (49.68%)

0 of 440 new or added lines in 15 files covered. (0.0%)

13875 of 77148 relevant lines covered (17.98%)

1.8 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/openapi/src/oauth/revoke.ts
NEW
1
import { axios } from '../axios';
×
NEW
2
import { registerRoute, urlBuilder } from '../utils';
×
NEW
3
import { z } from '../zod';
×
NEW
4

×
NEW
5
export const REVOKE_ACCESS = '/oauth/client/{clientId}/revoke-access';
×
NEW
6

×
NEW
7
export const revokeAccessRoute = registerRoute({
×
NEW
8
  method: 'post',
×
NEW
9
  path: REVOKE_ACCESS,
×
NEW
10
  request: {
×
NEW
11
    params: z.object({
×
NEW
12
      clientId: z.string(),
×
NEW
13
    }),
×
NEW
14
  },
×
NEW
15
  responses: {
×
NEW
16
    200: {
×
NEW
17
      description: 'Revoke access permission successfully',
×
NEW
18
    },
×
NEW
19
  },
×
NEW
20
  tags: ['oauth'],
×
NEW
21
});
×
NEW
22

×
NEW
23
export const revokeAccess = async (clientId: string) => {
×
NEW
24
  return axios.post<void>(urlBuilder(REVOKE_ACCESS, { clientId }));
×
NEW
25
};
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc