mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-26 00:46:23 +02:00
refactor oauth for discovery and dcr
This commit is contained in:
parent
47ac8222cd
commit
642dd7a167
13 changed files with 661 additions and 300 deletions
|
|
@ -1,15 +0,0 @@
|
|||
import { z } from 'zod';
|
||||
|
||||
/**
|
||||
* OAuth 2.0 tokens structure
|
||||
*/
|
||||
export const OAuthTokens = z.object({
|
||||
access_token: z.string(),
|
||||
refresh_token: z.string().nullable(),
|
||||
expires_at: z.number(), // Unix timestamp
|
||||
token_type: z.literal('Bearer').optional(),
|
||||
scopes: z.array(z.string()).optional(), // Granted scopes from OAuth response
|
||||
});
|
||||
|
||||
export type OAuthTokens = z.infer<typeof OAuthTokens>;
|
||||
|
||||
|
|
@ -3,5 +3,4 @@ import { PrefixLogger } from './prefix-logger.js';
|
|||
export * as ipc from './ipc.js';
|
||||
export * as workspace from './workspace.js';
|
||||
export * as mcp from './mcp.js';
|
||||
export * as auth from './auth.js';
|
||||
export { PrefixLogger };
|
||||
Loading…
Add table
Add a link
Reference in a new issue