Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

♻️ Replace deprecated arctic with in-house OAuth 2.0 client (#3440)

Luke Vella88505370a61e
diff --git a/apps/web/package.json b/apps/web/package.json
index 89c056d43..d3089226d 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -59,7 +59,6 @@
"@upstash/redis": "^1.36.2",
"@vercel/functions": "^3.3.6",
"ai": "^6.0.87",
- "arctic": "^3.7.0",
"better-auth": "1.6.30",
"calendar-link": "^2.6.0",
"class-variance-authority": "^0.7.1",
diff --git a/apps/web/src/features/conferencing/service.ts b/apps/web/src/features/conferencing/service.ts
index 4d1e96fb2..3c3919681 100644
--- a/apps/web/src/features/conferencing/service.ts
+++ b/apps/web/src/features/conferencing/service.ts
@@ -1,12 +1,12 @@
import "server-only";
import { createLogger } from "@rallly/logger";
-import { OAuth2RequestError } from "arctic";
import { google } from "googleapis";
import { env } from "@/env";
import { loadCredential } from "@/features/credentials/data";
import { updateOAuthCredentialTokens } from "@/features/credentials/mutations";
import type { OAuthCredentials } from "@/features/credentials/schema";
+import { OAuth2RequestError } from "@/lib/oauth/errors";
import { MicrosoftOAuthClient } from "@/lib/oauth/providers/microsoft";
import { ZoomOAuthClient } from "@/lib/oauth/providers/zoom";
import { MICROSOFT_TEAMS_SCOPES } from "./constants";
diff --git a/apps/web/src/lib/oauth/errors.ts b/apps/web/src/lib/oauth/errors.ts
index 6cef6d2e2..4e1a6bf5b 100644
--- a/apps/web/src/lib/oauth/errors.ts
+++ b/apps/web/src/lib/oauth/errors.ts
@@ -1,3 +1,17 @@
+// An error response (RFC 6749 section 5.2) from a token or revocation
+// endpoint. `invalid_grant` means the refresh token is dead and only
+// reconnecting brings the grant back.
+export class OAuth2RequestError extends Error {
+ code: string;
+ description?: string;
+ constructor(code: string, description?: string) {
+ super(`OAuth request error: ${code}`);
+ this.name = "OAuth2RequestError";
+ this.code = code;
+ this.description = description;
+ }
+}
+
// Thrown from `onConnect` to refuse a connection for a reason the landing page
// can explain. The reason travels in the outcome flash, whose fields are
// colon separated, so it is limited to lowercase words and underscores.
diff --git a/apps/web/src/lib/oauth/oauth2.test.ts b/apps/web/src/lib/oauth/oauth2.test.ts
new file mode 100644
index 000000000..e87c3c6bb
--- /dev/null
+++ b/apps/web/src/lib/oauth/oauth2.test.ts
@@ -0,0 +1,149 @@
+import { afterEach, describe, expect, it, vi } from "vitest";
+import { OAuth2RequestError } from "./errors";
+import {
+ createAuthorizationUrl,
+ createS256CodeChallenge,
+ generateCodeVerifier,
+ refreshAccessToken,
+ validateAuthorizationCode,
+} from "./oauth2";
+
+const client = {
+ clientId: "client",
+ clientSecret: "secret",
+ redirectUri: "https://example.com/callback",
+};
+
+const stubFetch = (status: number, body: unknown) => {
+ const fetchMock = vi.fn(async () => Response.json(body, { status }));
+ vi.stubGlobal("fetch", fetchMock);
+ return fetchMock;
+};
+
+afterEach(() => {
+ vi.unstubAllGlobals();
+});
+
+describe("createS256CodeChallenge", () => {
+ it("matches the RFC 7636 appendix B example", () => {
+ expect(
+ createS256CodeChallenge("dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"),
+ ).toBe("E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM");
+ });
+});
+
+describe("generateCodeVerifier", () => {
+ it("produces a verifier within the RFC 7636 length and alphabet", () => {
+ expect(generateCodeVerifier()).toMatch(/^[A-Za-z0-9_-]{43,128}$/);
+ });
+});
+
+describe("createAuthorizationUrl", () => {
+ it("sets the PKCE authorization request parameters", () => {
+ const url = createAuthorizationUrl({
+ endpoint: "https://provider.example/authorize",
+ client,
+ state: "state",
+ codeVerifier: "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk",
+ scopes: ["a", "b"],
+ });
+
+ expect(Object.fromEntries(url.searchParams)).toEqual({
+ response_type: "code",
+ client_id: "client",
+ redirect_uri: "https://example.com/callback",
+ state: "state",
+ code_challenge_method: "S256",
+ code_challenge: "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM",
+ scope: "a b",
+ });
+ });
+});
+
+describe("validateAuthorizationCode", () => {
+ it("authenticates with Basic credentials and maps the token response", async () => {
+ const fetchMock = stubFetch(200, {
+ access_token: "access",
+ refresh_token: "refresh",
+ expires_in: 3600,
+ scope: "a b",
+ });
+
+ const tokens = await validateAuthorizationCode({
+ endpoint: "https://provider.example/token",
+ client,
+ code: "code",
+ codeVerifier: "verifier",
+ });
+
+ expect(tokens).toMatchObject({
+ accessToken: "access",
+ refreshToken: "refresh",
+ scopes: ["a", "b"],
+ });
+ expect(tokens.expiresAt).toBeInstanceOf(Date);
+
+ const [, init] = fetchMock.mock.calls[0] as unknown as [
+ string,
+ RequestInit,
+ ];
+ expect(new Headers(init.headers).get("Authorization")).toBe(
+ `Basic ${btoa("client:secret")}`,
+ );
+ expect(Object.fromEntries(init.body as URLSearchParams)).toEqual({
+ grant_type: "authorization_code",
+ code: "code",
+ redirect_uri: "https://example.com/callback",
+ code_verifier: "verifier",
+ });
+ });
+
+ it("leaves optional fields undefined when the provider omits them", async () => {
+ stubFetch(200, { access_token: "access" });
+
+ const tokens = await validateAuthorizationCode({
+ endpoint: "https://provider.example/token",
+ client,
+ code: "code",
+ codeVerifier: "verifier",
+ });
+
+ expect(tokens).toEqual({
+ accessToken: "access",
+ refreshToken: undefined,
+ expiresAt: undefined,
+ scopes: undefined,
+ });
+ });
+});
+
+describe("refreshAccessToken", () => {
+ it("raises an OAuth2RequestError carrying the provider's error code", async () => {
+ stubFetch(400, {
+ error: "invalid_grant",
+ error_description: "Token has been expired or revoked.",
+ });
+
+ const promise = refreshAccessToken({
+ endpoint: "https://provider.example/token",
+ client,
+ refreshToken: "refresh",
+ });
+
+ await expect(promise).rejects.toBeInstanceOf(OAuth2RequestError);
+ await expect(promise).rejects.toMatchObject({ code: "invalid_grant" });
+ });
+
+ it("raises a plain error when the failure carries no OAuth error body", async () => {
+ stubFetch(502, "Bad gateway");
+
+ const promise = refreshAccessToken({
+ endpoint: "https://provider.example/token",
+ client,
+ refreshToken: "refresh",
+ });
+
+ await expect(promise).rejects.not.toBeInstanceOf(OAuth2RequestError);
+ await expect(promise).rejects.toThrow("(502)");
+ });
+});
diff --git a/apps/web/src/lib/oauth/oauth2.ts b/apps/web/src/lib/oauth/oauth2.ts
new file mode 100644
index 000000000..556f57696
--- /dev/null
+++ b/apps/web/src/lib/oauth/oauth2.ts
@@ -0,0 +1,186 @@
+import "server-only";
+
+import { createHash, randomBytes } from "node:crypto";
+import * as z from "zod";
+import { OAuth2RequestError } from "./errors";
+
+// The authorization code grant with PKCE (RFC 6749, RFC 7636) for a
+// confidential client, which authenticates to the token endpoint with HTTP
+// Basic credentials. Every provider we integrate with accepts this shape.
+
+export interface OAuth2ClientConfig {
+ clientId: string;
+ clientSecret: string;
+ redirectUri: string;
+}
+
+export interface OAuth2TokenResponse {
+ accessToken: string;
+ refreshToken?: string;
+ expiresAt?: Date;
+ scopes?: string[];
+}
+
+const tokenResponseSchema = z.object({
+ access_token: z.string(),
+ refresh_token: z.string().nullish(),
+ expires_in: z.number().nullish(),
+ scope: z.string().nullish(),
+});
+
+const errorResponseSchema = z.object({
+ error: z.string(),
+ error_description: z.string().nullish(),
+});
+
+const randomToken = () => randomBytes(32).toString("base64url");
+
+export const generateState = randomToken;
+
+export const generateCodeVerifier = randomToken;
+
+export function createS256CodeChallenge(codeVerifier: string) {
+ return createHash("sha256").update(codeVerifier).digest("base64url");
+}
+
+export function createAuthorizationUrl({
+ endpoint,
+ client,
+ state,
+ codeVerifier,
+ scopes,
+}: {
+ endpoint: string;
+ client: OAuth2ClientConfig;
+ state: string;
+ codeVerifier: string;
+ scopes: string[];
+}) {
+ const url = new URL(endpoint);
+ url.searchParams.set("response_type", "code");
+ url.searchParams.set("client_id", client.clientId);
+ url.searchParams.set("redirect_uri", client.redirectUri);
+ url.searchParams.set("state", state);
+ url.searchParams.set("code_challenge_method", "S256");
+ url.searchParams.set("code_challenge", createS256CodeChallenge(codeVerifier));
+ if (scopes.length > 0) {
+ url.searchParams.set("scope", scopes.join(" "));
+ }
+ return url;
+}
+
+export async function validateAuthorizationCode({
+ endpoint,
+ client,
+ code,
+ codeVerifier,
+}: {
+ endpoint: string;
+ client: OAuth2ClientConfig;
+ code: string;
+ codeVerifier: string;
+}) {
+ const response = await postForm({
+ endpoint,
+ client,
+ body: new URLSearchParams({
+ grant_type: "authorization_code",
+ code,
+ redirect_uri: client.redirectUri,
+ code_verifier: codeVerifier,
+ }),
+ });
+ return parseTokenResponse(response);
+}
+
+export async function refreshAccessToken({
+ endpoint,
+ client,
+ refreshToken,
+ scopes = [],
+}: {
+ endpoint: string;
+ client: OAuth2ClientConfig;
+ refreshToken: string;
+ scopes?: string[];
+}) {
+ const body = new URLSearchParams({
+ grant_type: "refresh_token",
+ refresh_token: refreshToken,
+ });
+ if (scopes.length > 0) {
+ body.set("scope", scopes.join(" "));
+ }
+ const response = await postForm({ endpoint, client, body });
+ return parseTokenResponse(response);
+}
+
+export async function revokeToken({
+ endpoint,
+ client,
+ token,
+}: {
+ endpoint: string;
+ client: OAuth2ClientConfig;
+ token: string;
+}) {
+ const response = await postForm({
+ endpoint,
+ client,
+ body: new URLSearchParams({ token }),
+ });
+ await response.body?.cancel();
+}
+
+async function postForm({
+ endpoint,
+ client,
+ body,
+}: {
+ endpoint: string;
+ client: OAuth2ClientConfig;
+ body: URLSearchParams;
+}) {
+ const credentials = Buffer.from(
+ `${client.clientId}:${client.clientSecret}`,
+ ).toString("base64");
+
+ const response = await fetch(endpoint, {
+ method: "POST",
+ headers: {
+ Authorization: `Basic ${credentials}`,
+ Accept: "application/json",
+ },
+ body,
+ });
+
+ if (response.ok) {
+ return response;
+ }
+
+ const error = errorResponseSchema.safeParse(
+ await response.json().catch(() => null),
+ );
+ if (error.success) {
+ throw new OAuth2RequestError(
+ error.data.error,
+ error.data.error_description ?? undefined,
+ );
+ }
+ throw new Error(`OAuth request to ${endpoint} failed (${response.status})`);
+}
+
+async function parseTokenResponse(
+ response: Response,
+): Promise<OAuth2TokenResponse> {
+ const data = tokenResponseSchema.parse(await response.json());
+ return {
+ accessToken: data.access_token,
+ refreshToken: data.refresh_token ?? undefined,
+ expiresAt:
+ data.expires_in != null
+ ? new Date(Date.now() + data.expires_in * 1000)
+ : undefined,
+ scopes: data.scope?.split(" ").filter(Boolean),
+ };
+}
diff --git a/apps/web/src/lib/oauth/providers/google.ts b/apps/web/src/lib/oauth/providers/google.ts
index addb046f1..69f3ae288 100644
--- a/apps/web/src/lib/oauth/providers/google.ts
+++ b/apps/web/src/lib/oauth/providers/google.ts
@@ -1,10 +1,18 @@
import "server-only";
-import { Google } from "arctic";
import { google } from "googleapis";
+import type { OAuth2ClientConfig } from "../oauth2";
+import {
+ createAuthorizationUrl,
+ refreshAccessToken,
+ validateAuthorizationCode,
+} from "../oauth2";
import type { OAuthClient, OAuthTokens, UserInfo } from "../types";
import { handleOAuthError } from "./base";
+const AUTHORIZATION_ENDPOINT = "https://accounts.google.com/o/oauth2/v2/auth";
+const TOKEN_ENDPOINT = "https://oauth2.googleapis.com/token";
+
interface GoogleOAuthClientConfig {
clientId: string;
clientSecret: string;
@@ -20,7 +28,7 @@ interface GoogleOAuthClientConfig {
export class GoogleOAuthClient implements OAuthClient {
provider = "google";
- private client: Google;
+ private client: OAuth2ClientConfig;
private clientId: string;
private clientSecret: string;
scopes: string[];
@@ -37,7 +45,7 @@ export class GoogleOAuthClient implements OAuthClient {
callbackUrl = "",
onConnect,
}: GoogleOAuthClientConfig) {
- this.client = new Google(clientId, clientSecret, callbackUrl);
+ this.client = { clientId, clientSecret, redirectUri: callbackUrl };
this.clientId = clientId;
this.clientSecret = clientSecret;
this.scopes = scopes;
@@ -45,11 +53,13 @@ export class GoogleOAuthClient implements OAuthClient {
}
getAuthorizationUrl(state: string, codeVerifier: string): URL {
- const authUrl = this.client.createAuthorizationURL(
+ const authUrl = createAuthorizationUrl({
+ endpoint: AUTHORIZATION_ENDPOINT,
+ client: this.client,
state,
codeVerifier,
- this.scopes,
- );
+ scopes: this.scopes,
+ });
authUrl.searchParams.set("access_type", "offline");
authUrl.searchParams.set("prompt", "consent");
@@ -63,19 +73,14 @@ export class GoogleOAuthClient implements OAuthClient {
async exchangeCode(code: string, codeVerifier: string): Promise<OAuthTokens> {
try {
- const tokens = await this.client.validateAuthorizationCode(
+ const tokens = await validateAuthorizationCode({
+ endpoint: TOKEN_ENDPOINT,
+ client: this.client,
code,
codeVerifier,
- );
+ });
- return {
- accessToken: tokens.accessToken(),
- refreshToken: tokens.hasRefreshToken()
- ? tokens.refreshToken()
- : undefined,
- expiresAt: tokens.accessTokenExpiresAt(),
- scopes: tokens.scopes(),
- };
+ return { ...tokens, scopes: tokens.scopes ?? this.scopes };
} catch (error) {
handleOAuthError(error);
}
@@ -111,16 +116,13 @@ export class GoogleOAuthClient implements OAuthClient {
async refreshAccessToken(refreshToken: string): Promise<OAuthTokens> {
try {
- const tokens = await this.client.refreshAccessToken(refreshToken);
+ const tokens = await refreshAccessToken({
+ endpoint: TOKEN_ENDPOINT,
+ client: this.client,
+ refreshToken,
+ });
- return {
- accessToken: tokens.accessToken(),
- refreshToken: tokens.hasRefreshToken()
- ? tokens.refreshToken()
- : undefined,
- expiresAt: tokens.accessTokenExpiresAt(),
- scopes: tokens.scopes(),
- };
+ return { ...tokens, scopes: tokens.scopes ?? this.scopes };
} catch (error) {
handleOAuthError(error);
}
diff --git a/apps/web/src/lib/oauth/providers/microsoft.ts b/apps/web/src/lib/oauth/providers/microsoft.ts
index ce697abd8..4e7367bbd 100644
--- a/apps/web/src/lib/oauth/providers/microsoft.ts
+++ b/apps/web/src/lib/oauth/providers/microsoft.ts
@@ -1,7 +1,12 @@
import "server-only";
-import { MicrosoftEntraId } from "arctic";
import * as z from "zod";
+import type { OAuth2ClientConfig } from "../oauth2";
+import {
+ createAuthorizationUrl,
+ refreshAccessToken,
+ validateAuthorizationCode,
+} from "../oauth2";
import type { OAuthClient, OAuthTokens, UserInfo } from "../types";
import { handleOAuthError } from "./base";
@@ -23,7 +28,7 @@ interface MicrosoftOAuthClientConfig {
export class MicrosoftOAuthClient implements OAuthClient {
provider = "microsoft";
- private client: MicrosoftEntraId;
+ private client: OAuth2ClientConfig;
private tenant: string;
private clientId: string;
private callbackUrl: string;
@@ -38,12 +43,7 @@ export class MicrosoftOAuthClient implements OAuthClient {
callbackUrl = "",
onConnect,
}: MicrosoftOAuthClientConfig) {
- this.client = new MicrosoftEntraId(
- tenant,
- clientId,
- clientSecret,
- callbackUrl,
- );
+ this.client = { clientId, clientSecret, redirectUri: callbackUrl };
this.tenant = tenant;
this.clientId = clientId;
this.callbackUrl = callbackUrl;
@@ -52,17 +52,23 @@ export class MicrosoftOAuthClient implements OAuthClient {
}
getAuthorizationUrl(state: string, codeVerifier: string): URL {
- const url = this.client.createAuthorizationURL(
+ const url = createAuthorizationUrl({
+ endpoint: `https://login.microsoftonline.com/${this.tenant}/oauth2/v2.0/authorize`,
+ client: this.client,
state,
codeVerifier,
- this.scopes,
- );
+ scopes: this.scopes,
+ });
// Without it Microsoft silently reuses whichever account the browser is
// signed in to, which is often not the one that holds the Teams license.
url.searchParams.set("prompt", "select_account");
return url;
}
+ private get tokenEndpoint() {
+ return `https://login.microsoftonline.com/${this.tenant}/oauth2/v2.0/token`;
+ }
+
// Tenant wide consent for organizations that do not let users consent to
// apps themselves. Microsoft returns the admin to the callback with
// `admin_consent` set instead of a code.
@@ -78,18 +84,13 @@ export class MicrosoftOAuthClient implements OAuthClient {
async exchangeCode(code: string, codeVerifier: string): Promise<OAuthTokens> {
try {
- const tokens = await this.client.validateAuthorizationCode(
+ const tokens = await validateAuthorizationCode({
+ endpoint: this.tokenEndpoint,
+ client: this.client,
code,
codeVerifier,
- );
- return {
- accessToken: tokens.accessToken(),
- refreshToken: tokens.hasRefreshToken()
- ? tokens.refreshToken()
- : undefined,
- expiresAt: tokens.accessTokenExpiresAt(),
- scopes: tokens.hasScopes() ? tokens.scopes() : this.scopes,
- };
+ });
+ return { ...tokens, scopes: tokens.scopes ?? this.scopes };
} catch (error) {
handleOAuthError(error);
}
@@ -127,17 +128,16 @@ export class MicrosoftOAuthClient implements OAuthClient {
// is not bound to a scope, so the scopes are named again on each call.
async refreshAccessToken(refreshToken: string): Promise<OAuthTokens> {
try {
- const tokens = await this.client.refreshAccessToken(
+ const tokens = await refreshAccessToken({
+ endpoint: this.tokenEndpoint,
+ client: this.client,
refreshToken,
- this.scopes,
- );
+ scopes: this.scopes,
+ });
return {
- accessToken: tokens.accessToken(),
- refreshToken: tokens.hasRefreshToken()
- ? tokens.refreshToken()
- : refreshToken,
- expiresAt: tokens.accessTokenExpiresAt(),
- scopes: tokens.hasScopes() ? tokens.scopes() : this.scopes,
+ ...tokens,
+ refreshToken: tokens.refreshToken ?? refreshToken,
+ scopes: tokens.scopes ?? this.scopes,
};
} catch (error) {
handleOAuthError(error);
diff --git a/apps/web/src/lib/oauth/providers/zoom.ts b/apps/web/src/lib/oauth/providers/zoom.ts
index 7cd1f29d8..298d65bc1 100644
--- a/apps/web/src/lib/oauth/providers/zoom.ts
+++ b/apps/web/src/lib/oauth/providers/zoom.ts
@@ -1,10 +1,20 @@
import "server-only";
-import { Zoom } from "arctic";
import * as z from "zod";
+import type { OAuth2ClientConfig } from "../oauth2";
+import {
+ createAuthorizationUrl,
+ refreshAccessToken,
+ revokeToken,
+ validateAuthorizationCode,
+} from "../oauth2";
import type { OAuthClient, OAuthTokens, UserInfo } from "../types";
import { handleOAuthError } from "./base";
+const AUTHORIZATION_ENDPOINT = "https://zoom.us/oauth/authorize";
+const TOKEN_ENDPOINT = "https://zoom.us/oauth/token";
+const REVOCATION_ENDPOINT = "https://zoom.us/oauth/revoke";
+
const zoomUserSchema = z.object({
id: z.string(),
email: z.string(),
@@ -23,7 +33,7 @@ interface ZoomOAuthClientConfig {
export class ZoomOAuthClient implements OAuthClient {
provider = "zoom";
- private client: Zoom;
+ private client: OAuth2ClientConfig;
scopes: string[];
onConnect?: OAuthClient["onConnect"];
@@ -34,29 +44,30 @@ export class ZoomOAuthClient implements OAuthClient {
callbackUrl = "",
onConnect,
}: ZoomOAuthClientConfig) {
- this.client = new Zoom(clientId, clientSecret, callbackUrl);
+ this.client = { clientId, clientSecret, redirectUri: callbackUrl };
this.scopes = scopes;
this.onConnect = onConnect;
}
getAuthorizationUrl(state: string, codeVerifier: string): URL {
- return this.client.createAuthorizationURL(state, codeVerifier, this.scopes);
+ return createAuthorizationUrl({
+ endpoint: AUTHORIZATION_ENDPOINT,
+ client: this.client,
+ state,
+ codeVerifier,
+ scopes: this.scopes,
+ });
}
async exchangeCode(code: string, codeVerifier: string): Promise<OAuthTokens> {
try {
- const tokens = await this.client.validateAuthorizationCode(
+ const tokens = await validateAuthorizationCode({
+ endpoint: TOKEN_ENDPOINT,
+ client: this.client,
code,
codeVerifier,
- );
- return {
- accessToken: tokens.accessToken(),
- refreshToken: tokens.hasRefreshToken()
- ? tokens.refreshToken()
- : undefined,
- expiresAt: tokens.accessTokenExpiresAt(),
- scopes: tokens.hasScopes() ? tokens.scopes() : this.scopes,
- };
+ });
+ return { ...tokens, scopes: tokens.scopes ?? this.scopes };
} catch (error) {
handleOAuthError(error);
}
@@ -86,14 +97,15 @@ export class ZoomOAuthClient implements OAuthClient {
async refreshAccessToken(refreshToken: string): Promise<OAuthTokens> {
try {
- const tokens = await this.client.refreshAccessToken(refreshToken);
+ const tokens = await refreshAccessToken({
+ endpoint: TOKEN_ENDPOINT,
+ client: this.client,
+ refreshToken,
+ });
return {
- accessToken: tokens.accessToken(),
- refreshToken: tokens.hasRefreshToken()
- ? tokens.refreshToken()
- : refreshToken,
- expiresAt: tokens.accessTokenExpiresAt(),
- scopes: tokens.hasScopes() ? tokens.scopes() : this.scopes,
+ ...tokens,
+ refreshToken: tokens.refreshToken ?? refreshToken,
+ scopes: tokens.scopes ?? this.scopes,
};
} catch (error) {
handleOAuthError(error);
@@ -102,7 +114,11 @@ export class ZoomOAuthClient implements OAuthClient {
async revokeToken(accessToken: string): Promise<void> {
try {
- await this.client.revokeToken(accessToken);
+ await revokeToken({
+ endpoint: REVOCATION_ENDPOINT,
+ client: this.client,
+ token: accessToken,
+ });
} catch (error) {
handleOAuthError(error);
}
diff --git a/apps/web/src/lib/oauth/server.ts b/apps/web/src/lib/oauth/server.ts
index e536a33ce..fa056b4bc 100644
--- a/apps/web/src/lib/oauth/server.ts
+++ b/apps/web/src/lib/oauth/server.ts
@@ -3,7 +3,6 @@ import "server-only";
import { zValidator } from "@hono/zod-validator";
import { createLogger } from "@rallly/logger";
import { absoluteUrl } from "@rallly/utils/absolute-url";
-import { generateCodeVerifier, generateState } from "arctic";
import type { Context } from "hono";
import { Hono } from "hono";
import { deleteCookie, getCookie, setCookie } from "hono/cookie";
@@ -13,6 +12,7 @@ import { FLASH_MAX_AGE, flashCookieName } from "@/lib/flash/constants";
import { validateRedirectUrl } from "@/lib/utils/redirect";
import { OAUTH_FLASH_KEY } from "./constants";
import { OAuthConnectionRefusedError } from "./errors";
+import { generateCodeVerifier, generateState } from "./oauth2";
import type { CreateOAuthOptions } from "./types";
const logger = createLogger("oauth");
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 631de72b8..70c9a07b3 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -312,9 +312,6 @@ importers:
ai:
specifier: ^6.0.87
version: 6.0.87([email protected])
- arctic:
- specifier: ^3.7.0
- version: 3.7.0
better-auth:
specifier: 1.6.30
@@ -968,25 +965,21 @@ packages:
resolution: {integrity: sha512-GslvPvSzehfCZyzOaJAt4lgodznm5zpl/LMXN8ygD12z5qnpM+I9/eFnmAaISJ0L8/vyohtlAP1jjaeR2jz1AQ==}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@anthropic-ai/[email protected]':
resolution: {integrity: sha512-SxszQGffXiLzMEnAv+pJXEmQbA8haijKyRjjH/jOt1CLeMIfpjKcO9WQDv8dEA8nREWS3zJ103zjgecAF7oOQQ==}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@anthropic-ai/[email protected]':
resolution: {integrity: sha512-kZigJ5Ug2I2G/n7Cunmwy4TGr0lOGnWrz6TkzyWiDcUmJOodoTH6GZECNarWAtETfN03AAeLfrpiz8z3hOEDqA==}
cpu: [x64]
os: [linux]
- libc: [musl]
'@anthropic-ai/[email protected]':
resolution: {integrity: sha512-gJRa922Qcm7loumHcXMDFEFg//tz1aOi7Nx0sQa9I9lC1JSN8yL6i7/idzOU5Hp193tEDFOgqIMFL/yRiXg+rw==}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@anthropic-ai/[email protected]':
resolution: {integrity: sha512-/3yA9jQuCvHDVlILzhtslH6kFYOvydXyMZiKwnzqM8ZfvFTNO41w8TpiFpBLseyM+4A4E8QMeTKu3L01Xyb5IQ==}
@@ -2018,28 +2011,24 @@ packages:
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@biomejs/[email protected]':
resolution: {integrity: sha512-KT67FKfzIw6DNnUNdYlBg+eU24Go3n75GWK6NwU4+yJmDYFe9i/MjiI+U/iEzKvo0g7G7MZqoyrhIYuND2w8QQ==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@biomejs/[email protected]':
resolution: {integrity: sha512-KQU7EkbBBuHPW3/rAcoiVmhlPtDSGOGRPv9js7qJVpYTzjQmVR+C9Rfcz+ti8YCH+zT1J52tuBybtP4IodjxZQ==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [linux]
- libc: [musl]
'@biomejs/[email protected]':
resolution: {integrity: sha512-ZsZzQsl9U+wxFrGGS4f6UxREUlgHwmEfu1IrXlgNFrNnd5Th6lIJr8KmSzu/+meSa9f4rzFrbEW9LBBA6ScoMA==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@biomejs/[email protected]':
resolution: {integrity: sha512-+IKYkj/pUBbnRf1G1+RlyA3LWiDgra1xpS7H2g4BuOzzRbRB+hmlw0yFsLprHhbbt7jUzbzAbAjK/Pn0FDnh1A==}
@@ -2789,183 +2778,155 @@ packages:
resolution: {integrity: sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA==}
cpu: [arm64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-dqVSFynCox4C/J8kT16V7SIFAns0IjgLwkvYT7p8LQVmJ5OS5b6tI9IGflxTeuBS//zXeFIUbwt5dwxyZ17cnA==}
cpu: [arm64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g==}
cpu: [arm]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-1eMLzy92I4J6rmi4mAT8yC3HxOtniyGELlzGbNMLLeqe052ahFQ0h6LFq+lh5DsDIdYViIDst08abvSbcEdLXQ==}
cpu: [arm]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-3z0NHDxD6n5I9gc05U1eW1AyRm+Gznzq3naMrthPNqE6oYykcogW0l/jfpJdjYnuNl8R7yI9pNbE1XiUeyq0Aw==}
cpu: [ppc64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-bsb4rI+NldGOsXuej2r8OdSS8+zXDVaCWxyWrcv6kneTOlgAHtZABRzBBCwdsPiD90J4myNJuHpg6kA20ImW/w==}
cpu: [riscv64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA==}
cpu: [s390x]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-/ABshyj8gCpyIrNXnHn4LorDJ0HHm1VhXPBlxZ8zAtfVPAaSafXPGn+sUSIRiwaSBy0mmFjSjiXI5mkcwdChKQ==}
cpu: [s390x]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw==}
cpu: [x64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-ITPEtgffGJ0S6G9dRyw/366tJQqFRcHWPHhC+Stpg3Z8AEMrDrTr2lhdz4f/Y/HMbRh//7Z5mBzEpVdi62Oc3w==}
cpu: [x64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA==}
cpu: [arm64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-zE9EdiUzUmg5mDT5a1rk5fYJ6GWPloTwWBYDS14naqHsL+EaMpDj1AWnpLgh3u0YCORv2Tt50wrcrpYqkP97Kw==}
cpu: [arm64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw==}
cpu: [x64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-m0lrLiUt+lBYnCFr8qV/65yMR4E/c7/wf78I5eKTdkEakFAlZ9QlzEM3QIhhAwVeUhLAHLcCq7a7Vszq/oFNZQ==}
cpu: [x64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [arm64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-QgKDspHPnrU+GQ55XPhGwyhC8acLVOOSyAvo1oVfFmrIXLkDNmGWzAfDZ4xK8oSA1qBQrALcHX0G5UZni/SuFQ==}
engines: {node: '>=20.9.0'}
cpu: [arm64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [arm]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-affVWCTLooy8TSxbDx2qkzuDeaWLNVBA+P//FNBirHsXpP2fuBhk5AuboYUnrDnzoXes8GFjpTx0SBFOCRg+FA==}
engines: {node: '>=20.9.0'}
cpu: [arm]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-sMd8rDxmpLOwv/7N44klFjOD5DUO7FLdjiXDI0hoxYaf7Ar262dQIEkosE98bps+5HPLtp/EvNqeqQtOycP/IA==}
engines: {node: '>=20.9.0'}
cpu: [ppc64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-0Eob78yjlYPfL5vMNWAW55l3R9Y6BQS/gOfe0ZcP9mEz9ohhKSt4im1hayiknXgf8AWrFqMvJcKIdmLmEe7yeQ==}
engines: {node: '>=20.9.0'}
cpu: [riscv64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [s390x]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-KgAxQ0DxpNOq1rG2t5cgTgShJFGSuU7XO45cqC+1NVOuZnP6tlgZRuSYOfNupGkHID0o3cJOsw4DVeJpMovcGw==}
engines: {node: '>=20.9.0'}
cpu: [s390x]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [x64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-8pqvxubL2PGdhlPy6GLqzDYMUjyRmKAwKHYKixpdJYBUK7PJ0C029XdsnpFIdgRZG68fZiGdHVWcKPvtiPB4cA==}
engines: {node: '>=20.9.0'}
cpu: [x64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [arm64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-Vz0iQjzzcSX3HCbfwFfCSG/9SCIqyO0mH2sXyiHaAYfBk0cRsCWXRyQYX0ovCK/PAQBbTzQ0dsPQHh5MAFL59w==}
engines: {node: '>=20.9.0'}
cpu: [arm64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [x64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-6O1NPKcDVj9QEdg7Hx549EX8U0rp6yXQERqru6yRN7fGBn32UvIRJUlWnk+8xDCiG76hXVBbX82NZ/ZKr0euIg==}
engines: {node: '>=20.9.0'}
cpu: [x64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg==}
@@ -3426,7 +3387,6 @@ packages:
engines: {node: ^22.20 || ^24.12 || >=25}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@next-safe-action/[email protected]':
resolution: {integrity: sha512-OD/3H1JQ+dd1BRj10xoreJyqDRpMm1x6Z+Ty0663ImMWwZ8yG7uTxR9wtxM2yr0nQ/XOsex/W2ZNUebCxoIyyg==}
@@ -3460,28 +3420,24 @@ packages:
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-W7viwCk9JY/cAkdz/A273rd5bb3RgT/IHwR7Upv90tunjBWNtAAhGhoecHh+teRNRSinuAFmE+l7fwZ4YKkrXg==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-0W46zw1N3ODpI6n0GeivHvvob1pooozgZVqy65k0mh4/7vr+FbY9+WpHzNVXjHipJf/A3FDheBG19H1s5A25rA==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-H4mBso8ZTMBPtdT0PN0pBx2ayTvQuTuvS6qT13d77yVFJXAPCxkyIhLTmdMaGTJs0krQYI/qpzdHijCeihXhbg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-cTMUJpcEGmeywofCUfhR+rSsoE33+rVPnPEYNTNdLNlsOeEg/vktOsKUSTb28vUGqD2jkm4Zaskcwn7OCI6FQg==}
@@ -3764,28 +3720,6 @@ packages:
peerDependencies:
'@opentelemetry/api': ^1.1.0
- '@oslojs/[email protected]':
- resolution: {integrity: sha512-zw/wn0sj0j0QKbIXfIlnEcTviaCzYOY3V5rAyjR6YtOByFtJiT574+8p9Wlach0lZH9fddD4yb9laEAIl4vXQA==}
- deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
-
- '@oslojs/[email protected]':
- resolution: {integrity: sha512-9RCU6OwXU6p67H4NODbuxv2S3eenuQ4/WFLrsq+K/k682xrznH5EVWA7N4VFk9VYVcbFtKqur5YQQZc0ySGhsQ==}
- deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
-
- '@oslojs/[email protected]':
- resolution: {integrity: sha512-7n08G8nWjAr/Yu3vu9zzrd0L9XnrJfpMioQcvCMxBIiF5orECHe5/3J0jmXRVvgfqMm/+4oxlQ+Sq39COYLcNQ==}
- deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
-
- '@oslojs/[email protected]':
- resolution: {integrity: sha512-hkjo6MuIK/kQR5CrGNdAPZhS01ZCXuWDRJ187zh6qqF2+yMHZpD9fAYpX8q2bOO6Ryhl3XpCT6kUX76N8hhm4Q==}
-
- '@oslojs/[email protected]':
- resolution: {integrity: sha512-70wQhgYmndg4GCPxPPxPGevRKqTIJ2Nh4OkiMWmDAVYsTQ+Ta7Sq+rPevXyXGdzr30/qZBnyOalCszoMxlyldQ==}
-
- '@oslojs/[email protected]':
- resolution: {integrity: sha512-bLE7BtHrURedCn4Mco3ma9L4Y1GR2SMBuIvjWr7rmQ4/W/4Jy70TIAgZ+0nIlk0xHz1vNP8x8DCns45Sb2XRbg==}
- deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
-
'@oxc-parser/[email protected]':
resolution: {integrity: sha512-pHASv9g5pASxb7akHERZNSkrEqPhFaUix98o7d9hbTpolnnFWl7UiRrcMhCsV1+iVO4/cJwKsbKRJTFNs2tdBQ==}
engines: {node: ^20.19.0 || >=22.12.0}
@@ -3833,56 +3767,48 @@ packages:
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@oxc-parser/[email protected]':
resolution: {integrity: sha512-3CQy/BMdx7N7H3qrcPxUL+a2CwUZodUcf6oq8iJuNZ9C6Ol1aq3mcWzsgySJ7CHFLvpX21ZDPp1r1X0QLbu/AQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@oxc-parser/[email protected]':
resolution: {integrity: sha512-9LkaYvfiF8hMOw900csAvkf1oxE8XlmMeGowu5BcastSSwV8mKvKRMNU7HsV+ycyj1dQD8pX5qgOw8ja6SJacg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [ppc64]
os: [linux]
- libc: [glibc]
'@oxc-parser/[email protected]':
resolution: {integrity: sha512-2GBiM9h26dR4WJfhoMvnFMnFLf7m/kYs4UMqjvrOfQG4BV1nuTJDH22Zc2MQr3INZF7nSKYQ6xlhD3hQ7A6gug==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64]
os: [linux]
- libc: [glibc]
'@oxc-parser/[email protected]':
resolution: {integrity: sha512-uPqZexvKJmEgq4mAu36qe2xTfXZE7oyik1R7KtZ5tl8qKlq1U1fIqTFRUEBZqRGvforoTrGIpatRzcoPKO66RA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64]
os: [linux]
- libc: [musl]
'@oxc-parser/[email protected]':
resolution: {integrity: sha512-9oUHvnTbp7ZraFsTC8PN6XhdhPSSxZumYvixWl7Smi353gEULvK6yV0sXNVrdFMHQeaDKFCi8TgDhNK7/A+Y+Q==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [s390x]
os: [linux]
- libc: [glibc]
'@oxc-parser/[email protected]':
resolution: {integrity: sha512-2qhDSJwKzbSZzF7lDqqk8sr/yXsmwr3PeUa4/nazIF+zFAYz1gVPEfC34GQtGxzJUUmklaYAL63368LEfrMeyw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@oxc-parser/[email protected]':
resolution: {integrity: sha512-qQoPDZUFV0bh9xA09XydmkjMBpgc1ukJuhMvzQ9QeVmFaHTS9W5TE5CoLmSl3QQyUP9OuHO3x/WPZTIIZPWR3Q==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
- libc: [musl]
'@oxc-parser/[email protected]':
resolution: {integrity: sha512-1UGbaQWEXUCLqAmaR5kwRDjx/R4S5LQKZkM9CHmaHkuKhriOF32aRLfS0jCRNE2yGQJLMEA1z9UucbBVqjXnDw==}
@@ -3958,56 +3884,48 @@ packages:
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@oxlint/[email protected]':
resolution: {integrity: sha512-q63JalLYVkZiZvls1z3PPUnpmQluOMXp0khqQMznCeAPLGydfNY8JhvuA4WlK57JfrvikU8wB5lPVveqpIXvew==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@oxlint/[email protected]':
resolution: {integrity: sha512-krQmDF+dRbxvdqVPV88ZuOoPPu8X5BuqDA8Hd+qcS4YMRQCb+nexA57DazgGsc/rGdKBe3QmV0mnv0bdpW/p5g==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [ppc64]
os: [linux]
- libc: [glibc]
'@oxlint/[email protected]':
resolution: {integrity: sha512-MmOl8Y6txEAXZU1RG8Rr264jQ6D7VPmqFsU/45x/FeWsGe32hklTqGrLE6UxHzp5Rjt0wP+20tY8YXKgSFB3mw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64]
os: [linux]
- libc: [glibc]
'@oxlint/[email protected]':
resolution: {integrity: sha512-u1rMymh0W3JZkq370kzQsYPULGWqhE09pZRqnZvUSoYaI9pVO5yVX+iYIslmWuEgwuzH9YAaOsScJiobWCHoOw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64]
os: [linux]
- libc: [musl]
'@oxlint/[email protected]':
resolution: {integrity: sha512-y0zK3HNwGysu7rqtE+BQG/d0bx5gh/KwlOtghN8oWeK1KcWzeaLqtZrbm8owqdma1lFyrce/hTO5ismuNu+INQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [s390x]
os: [linux]
- libc: [glibc]
'@oxlint/[email protected]':
resolution: {integrity: sha512-rS5gM0NgD7ngmuJmbIehsidtrOwKkLFwCQbKEeb9KuyQrrWNq5Zkn0uV6AYdXOMJ0grrWEiLwBuvMxt8w5vsNw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@oxlint/[email protected]':
resolution: {integrity: sha512-W2IH4EtpcPaWcvNGCA95YoDg4vxqE/ZiPCi3arrxEEpsK7+JQN9WYwrlYFx9pcdP6KPXqRqkv3zdQPHcx7b6YQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
- libc: [musl]
'@oxlint/[email protected]':
resolution: {integrity: sha512-6LyKkUyoajssTPLlZmDbZIbu4IZ5B4bGuRUnBgCGpEvHP3FQMaYITncHA/unPUo7q+Z+pIu2HhdkQ+8d1SG7iA==}
@@ -5223,157 +5141,131 @@ packages:
resolution: {integrity: sha512-F8sWbhZ7tyuEfsmOxwc2giKDQzN3+kuBLPwwZGyVkLlKGdV1nvnNwYD0fKQ8+XS6hp9nY7B+ZeK01EBUE7aHaw==}
cpu: [arm]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-CFmhpvAwzSaWMlN3VN7UtmoTihlZNzoP0juQib5TQRnYUyDV8dXeWOp29sobWAT6gXl/hQgAClLlEiYozQG3OQ==}
cpu: [arm]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-rGfNUfn0GIeXtBP1wL5MnzSj98+PZe/AXaGBCRmT0ts80lU5CATYGxXukeTX39XBKsxzFpEeK+Mrp9faXOlmrw==}
cpu: [arm]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-Uc9H8eXCOayV6JLTH5bXKMId6qbhNHa818/BgYjm4jrlq3vZquC9cqyvHBw17xy5Mnj5f+I3gFK5JcEf3hSqrw==}
cpu: [arm]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-MMtej3YHWeg/0klK2Qodf3yrNzz6CGjo2UntLvk2RSPlhzgLvYEB3frRvbEF2wRKh1Z2fDIg9KRPe1fawv7C+g==}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-VcPr/szv/1BFw112Kt//fxulXt/JPqzzidU84iW68L2DdjnOO8QFUv2zTSYBEPHD6movBD4z+bbr5y60GYM7Jw==}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-1a/qhaaOXhqXGpMFMET9VqwZakkljWHLmZOX48R0I/YLbhdxr1m4gtG1Hq7++VhVUmf+L3sTAf9op4JlhQ5u1Q==}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-BnxtJ5/91BrIHYIkGrmjz/lbMhqEHt1dPFqIxIFR+jPn0xVc/oUSCtIT089zfp5ufwGDlYz2UC+Fe1SRBpYFbQ==}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-QWO6RQTZ/cqYtJMtxhkRkidoNGXc7ERPbZN7dVW5SdURuLeVU7lwKMpo18XdcmpWYd0qsP1bwKPf7DNSUinhvA==}
cpu: [loong64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-LrYcHZwF+fAMNKHYTOQ5osWM4AZF7YF6D+XtsjDyEvljtt11twc+zHVXBLNEjxVSUnKYsOhvVz4Z213eW02COQ==}
cpu: [loong64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-xpObYIf+8gprgWaPP32xiN5RVTi/s5FCR+XMXSKmhfoJjrpRAjCuuqQXyxUa/eJTdAE6eJ+KDKaoEqjZQxh3Gw==}
cpu: [loong64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-nj7QKQePAAUpCpJHtg0pR0W/b92A9NO17JS3BAQmHDn/yhmkir2p8llrKY9TOhleKIaSzy1JhxS3T9FVld6coA==}
cpu: [loong64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-4BrCgrpZo4hvzMDKRqEaW1zeecScDCR+2nZ86ATLhAoJ5FQ+lbHVD3ttKe74/c7tNT9c6F2viwB3ufwp01Oh2w==}
cpu: [ppc64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-5ylkX6dWMeBKge9nTU+Rxfb+ZfaCIJ9lRqIFaK0eAMcWp7OJbYnLveLgXmm0VrvuLKb8qIK+mHyH0qu88RM+iA==}
cpu: [ppc64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-NOlUuzesGauESAyEYFSe3QTUguL+lvrN1HtwEEsU2rOwdUDeTMJdO5dUYl/2hKf9jWydJrO9OL/XSSf65R5+Xw==}
cpu: [ppc64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-oHK4ZHYFDKjZviK34I+NwgfbGxgI7ztrNxj2hPTSSNFgeq1a/lEd7dHV2fdGAuTH4Iym3RHJg+vAbWaWG4B7Zg==}
cpu: [ppc64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-ptA88htVp0AwUUqhVghwDIKlvJMD/fmL/wrQj99PRHFRAG6Z5nbWoWG4o81Nt9FT+IuqUQi+L31ZKAFeJ5Is+A==}
cpu: [riscv64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-UcetmHZ6XOXuUByiKZyQmb55ZPr0LABr3Ec/HB9wKZn6CEAFWZkE+hsJErJ9hbPBC7nI0dKuELx7CoV6IM7TMg==}
cpu: [riscv64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-S51t7aMMTNdmAMPpBg7OOsTdn4tySRQvklmL3RpDRyknk87+Sp3xaumlatU+ppQ+5raY7sSTcC2beGgvhENfuw==}
cpu: [riscv64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-C5CmDPQBtvjVo8cgQsBs+w6WB0JLkiixhgi6hVLV11hERWdn/p0XcPU2OUcZzac9BPOFq7SbaHFa8r3SWEysCQ==}
cpu: [riscv64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-Bl00OFnVFkL82FHbEqy3k5CUCKH6OEJL54KCyx2oqsmZnFTR8IoNqBF+mjQVcRCT5sB6yOvK8A37LNm/kPJiZg==}
cpu: [s390x]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-lHVQHJFKsuuxLMi3MQO9XVL8Tje3JR82CzB+QDKC5NWBcsIWuwsn9uIM5e3lBhI+fF1/s63qnyYqsg65+8rV/w==}
cpu: [s390x]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-ABca4ceT4N+Tv/GtotnWAeXZUZuM/9AQyCyKYyKnpk4yoA7QIAuBt6Hkgpw8kActYlew2mvckXkvx0FfoInnLg==}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-3W9bTFcQNJn71cSJVM9RKIiZOy8DO/XLDii8Uv/Pm6WKqDRj7JV3ZfuXIEfyuy5LXpIzAbB/1M4Ukp9GKNa7nA==}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-HFps0JeGtuOR2convgRRkHCekD7j+gdAuXM+/i6kGzQtFhlCtQkpwtNzkNj6QhCDp7DRJ7+qC/1Vg2jt5iSOFw==}
cpu: [x64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-VDC7rRJlee/scpki96GZ27Omf6yU87s1YXwVTpjE5841faVlDYYT565rgfmoR1U0sqL7z5ivQSDjcsF6VRXyBA==}
cpu: [x64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-H+hXEv9gdVQuDTgnqD+SQffoWoc0Of59AStSzTEj/feWTBAnSfSD3+Dql1ZruJQxmykT/JVY0dE8Ka7z0DH1hw==}
@@ -6128,42 +6020,36 @@ packages:
engines: {node: '>=10'}
cpu: [arm64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-4z0MgHU+7M0pZDqBN1El7mFXDI1SBwinfcUkAyA4v8QrhOIUOZltySt2aStQLZGrdXVXM4Y4ylfiTC04ED+MoQ==}
engines: {node: '>=10'}
cpu: [arm64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-fLI4iUgeSZu0eRWUXwe6YzPFx9gHbFiPkl8Rp3mJfP8OpNR3nTQCGPvHdDh9xniW7mVvgMY4ni7A4VzqI1KrpA==}
engines: {node: '>=10'}
cpu: [ppc64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-YqeKMAb7d4nQSGMJQ454IlaCENpzcDqhvBE9+CPfdnYpnUXxd+BSrB6Xk0YjW8UyoEhUj4p6quATCxbsp6J3jg==}
engines: {node: '>=10'}
cpu: [s390x]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-7HOuS1iGcme/j/TuL1TfmmLGiMQrjv/GmjyZeydl00FKPtpGXEldwqfI56xgd1YzrzoB2svWjxbGGyQ0TEASxg==}
engines: {node: '>=10'}
cpu: [x64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-h4kZYHc7dpc9P9u4brRJaS8Pl7tPVHAeiLSzw7T5RfIJgAoSdaCMKzI/2Uay9gFhaw8uyCDl0L5q37r0EpAfIA==}
engines: {node: '>=10'}
cpu: [x64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-+mQgKZXSj6mV38Zh05QaxSjUDmGP/R2JWlXZTDLSPkDzHU6p3GxN9eeSf5dfyDVU86946fmCvSzyl/ucImx8+A==}
@@ -6280,28 +6166,24 @@ packages:
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-1px92582HkPQlaaCkdRcio71p8bc8i/ap5807tPRDK/uw953cauQBT8c5tVGkOwrHMfc2Yh6UuxaH4vtTjGvHg==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-v3gyT0ivkfBLoZGF9LyHmts0Isc8jHZyVcbzio6Wpzifg/+5ZJpDiRiUhDLkcr7f/r38SWNe7ucxmGW3j3Kb/g==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-bhJ2y2OQNlcRwwgOAGMY0xTFStt4/wyU6pvI6LSuZpRgKQwxTec0/3Scu91O8ir7qCR3AuepQKLU/kX99FouqQ==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- libc: [musl]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-LffYTvPjODiP6PT16oNeUQJzNVyJl1cjIebq/rWWBF+3eDst5JGEFSc5cWxyRCJ0Mxl+KyIkqRxk1XPEs9x8TA==}
@@ -7172,10 +7054,6 @@ packages:
resolution: {integrity: sha512-N6//FLET/tXYNM/F6ABca1oH6fWB+KlTt909Le28WMDBk8oaT4vY17DCrwg2MvmuqUKt3Ni4N5dGJ/EoBgcO6A==}
- resolution: {integrity: sha512-ZMQ+f6VazDgUJOd+qNV+H7GohNSYal1mVjm5kEaZfE2Ifb7Ss70w+Q7xpJC87qZDkMZIXYf0pTIYZA0OPasSbw==}
- deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
-
resolution: {integrity: sha512-ZWc51jO3qegGkVh8Hwpv636EkbesNV5ZNQPCtRa+0qytRYPEs9IYT9qITY9buezqUH5uqyzlWLcufrzU2rffdg==}
@@ -9680,28 +9558,24 @@ packages:
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-5Vh9dGeblpTxWHpOx8iauV02popZDsCYMPIgiuw97OJ5uaDsL86cnqSFs5LZkG3ghHoX5isLgWzMs+eD1YzrnA==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-Cfd46gdmj1vQ+lR6VRTTadNHu6ALuw2pKR9lYq4FnhvgBc4zWY1EtZcAc6EffShbb1MFrIPfLDXD6Xprbnni4w==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-XJaLUUFXb6/QG2lGIW6aIk6jKdtjtcffUT0NKvIqhSBY3hh9Ch+1LCeH80dR9q9LBjG3ewbDjnumefsLsP6aiA==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-FZn+vaj7zLv//D/192WFFVA0RgHawIcHqLX9xuWiQt7P0PtdFEVaxgF9rjM/IRYHQXNnk61/H/gb2Ei+kUQ4xQ==}
@@ -16397,25 +16271,6 @@ snapshots:
'@opentelemetry/api': 1.9.0
'@opentelemetry/core': 2.5.0(@opentelemetry/[email protected])
- '@oslojs/[email protected]':
- dependencies:
- '@oslojs/binary': 1.0.0
-
- '@oslojs/[email protected]': {}
-
- '@oslojs/[email protected]':
- dependencies:
- '@oslojs/asn1': 1.0.0
- '@oslojs/binary': 1.0.0
-
- '@oslojs/[email protected]': {}
-
- '@oslojs/[email protected]': {}
-
- '@oslojs/[email protected]':
- dependencies:
- '@oslojs/encoding': 0.4.1
-
'@oxc-parser/[email protected]':
optional: true
@@ -20272,12 +20127,6 @@ snapshots:
- dependencies:
- '@oslojs/crypto': 1.0.1
- '@oslojs/encoding': 1.1.0
- '@oslojs/jwt': 0.2.0
-