UNPKG

@clerk/nextjs

Version:

Clerk SDK for NextJS

1 lines 2 kB
{"version":3,"sources":["../../../src/server/index.ts"],"sourcesContent":["/**\n * Generic exports\n */\nexport { createRouteMatcher } from './routeMatcher';\n\nexport { verifyToken, createClerkClient } from '@clerk/backend';\nexport { clerkClient } from './clerkClient';\n\n/**\n * Webhook-specific exports\n */\nexport type {\n DeletedObjectJSON,\n EmailJSON,\n OrganizationInvitationJSON,\n OrganizationJSON,\n OrganizationMembershipJSON,\n SessionJSON,\n SMSMessageJSON,\n UserJSON,\n WebhookEvent,\n WebhookEventType,\n UserWebhookEvent,\n EmailWebhookEvent,\n SMSWebhookEvent,\n SessionWebhookEvent,\n OrganizationWebhookEvent,\n OrganizationMembershipWebhookEvent,\n OrganizationInvitationWebhookEvent,\n} from '@clerk/backend';\n\n/**\n * NextJS-specific exports\n */\nexport { getAuth } from './createGetAuth';\nexport { buildClerkProps } from './buildClerkProps';\nexport { auth } from '../app-router/server/auth';\nexport { currentUser } from '../app-router/server/currentUser';\nexport { clerkMiddleware } from './clerkMiddleware';\nexport type { ClerkMiddlewareAuth, ClerkMiddlewareAuthObject, ClerkMiddlewareOptions } from './clerkMiddleware';\n\n/**\n * Re-export resource types from @clerk/backend\n */\nexport type {\n OrganizationMembershipRole,\n // Resources\n AllowlistIdentifier,\n Client,\n OrganizationMembership,\n EmailAddress,\n ExternalAccount,\n Invitation,\n OauthAccessToken,\n Organization,\n OrganizationInvitation,\n OrganizationMembershipPublicUserData,\n PhoneNumber,\n Session,\n SignInToken,\n SMSMessage,\n Token,\n User,\n} from '@clerk/backend';\n\n/**\n * Utilities for reverification\n */\nexport { reverificationErrorResponse, reverificationError } from '@clerk/backend/internal';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,0BAAmC;AAEnC,qBAA+C;AAC/C,yBAA4B;AA4B5B,2BAAwB;AACxB,6BAAgC;AAChC,kBAAqB;AACrB,yBAA4B;AAC5B,6BAAgC;AA8BhC,sBAAiE;","names":[]}