constants.ts•502 B
import { z } from "zod";
// Sentry OAuth endpoints
export const SENTRY_AUTH_URL = "/oauth/authorize/";
export const SENTRY_TOKEN_URL = "/oauth/token/";
export const TokenResponseSchema = z.object({
access_token: z.string(),
refresh_token: z.string(),
token_type: z.string(), // should be "bearer"
expires_in: z.number(),
expires_at: z.string().datetime(),
user: z.object({
email: z.string().email(),
id: z.string(),
name: z.string().nullable(),
}),
scope: z.string(),
});