|
1 | 1 | import { |
2 | | - checkExternalMembership, |
3 | | - checkPaidMembershipFromEntra, |
4 | 2 | checkPaidMembershipFromTable, |
5 | | - setPaidMembershipInTable, |
6 | | - MEMBER_CACHE_SECONDS, |
7 | 3 | checkPaidMembershipFromRedis, |
8 | 4 | } from "api/functions/membership.js"; |
9 | 5 | import { FastifyPluginAsync } from "fastify"; |
10 | | -import { |
11 | | - BaseError, |
12 | | - InternalServerError, |
13 | | - UnauthenticatedError, |
14 | | - ValidationError, |
15 | | -} from "common/errors/index.js"; |
16 | | -import { getEntraIdToken } from "api/functions/entraId.js"; |
17 | | -import { genericConfig, roleArns } from "common/config.js"; |
18 | | -import { getRoleCredentials } from "api/functions/sts.js"; |
19 | | -import { SecretsManagerClient } from "@aws-sdk/client-secrets-manager"; |
20 | | -import { DynamoDBClient } from "@aws-sdk/client-dynamodb"; |
| 6 | +import { ValidationError } from "common/errors/index.js"; |
21 | 7 | import rateLimiter from "api/plugins/rateLimiter.js"; |
22 | 8 | import { createCheckoutSession } from "api/functions/stripe.js"; |
23 | | -import { getSecretValue } from "api/plugins/auth.js"; |
24 | | -import stripe, { Stripe } from "stripe"; |
25 | | -import rawbody from "fastify-raw-body"; |
26 | 9 | import { FastifyZodOpenApiTypeProvider } from "fastify-zod-openapi"; |
27 | 10 | import * as z from "zod/v4"; |
28 | | -import { |
29 | | - illinoisNetId, |
30 | | - notAuthenticatedError, |
31 | | - withTags, |
32 | | -} from "api/components/index.js"; |
33 | | -import { getKey, setKey } from "api/functions/redisCache.js"; |
| 11 | +import { notAuthenticatedError, withTags } from "api/components/index.js"; |
34 | 12 | import { verifyUiucIdToken } from "./mobileWallet.js"; |
35 | 13 |
|
36 | 14 | function splitOnce(s: string, on: string) { |
|
0 commit comments