Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieusieben committed Mar 7, 2025
1 parent c95dfaf commit 3fa4dd4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/oauth/oauth-provider/src/oauth-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ import { OAuthHooks, SignInData, SignUpData } from './oauth-hooks.js'
import { OAuthVerifier, OAuthVerifierOptions } from './oauth-verifier.js'
import { AuthorizationResultAuthorize } from './output/build-authorize-data.js'
import {
BrandingConfig,
BrandingInput,
Customization,
CustomizationInput,
customizationSchema,
Expand Down Expand Up @@ -131,7 +131,7 @@ import { TokenStore, asTokenStore } from './token/token-store.js'
import { VerifyTokenClaimsOptions } from './token/verify-token-claims.js'

export {
type BrandingConfig,
type BrandingInput,
type CustomMetadata,
type Customization,
type Handler,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ export const brandingConfigSchema = z.object({
colors: colorsDefinitionSchema.optional(),
links: z.array(linkDefinitionSchema).readonly().optional(),
})
export type BrandingConfig = z.infer<typeof brandingConfigSchema>
export type BrandingInput = z.input<typeof brandingConfigSchema>
export type Branding = z.infer<typeof brandingConfigSchema>

export const customizationSchema = z.object({
/**
Expand Down Expand Up @@ -124,7 +125,7 @@ export function buildCustomizationCss({ branding }: Customization) {
return ''
}

function* buildCustomizationVars(branding?: BrandingConfig) {
function* buildCustomizationVars(branding?: Branding) {
if (branding?.colors) {
for (const name of colorNames) {
const value = branding.colors[name]
Expand Down
4 changes: 2 additions & 2 deletions packages/pds/src/config/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import assert from 'node:assert'
import path from 'node:path'
import { DAY, HOUR, SECOND } from '@atproto/common'
import { BrandingConfig, HcaptchaConfig } from '@atproto/oauth-provider'
import { BrandingInput, HcaptchaConfig } from '@atproto/oauth-provider'
import { ServerEnvironment } from './env'

// off-config but still from env:
Expand Down Expand Up @@ -447,7 +447,7 @@ export type OAuthConfig = {
| false
| {
hcaptcha?: HcaptchaConfig
branding: BrandingConfig
branding: BrandingInput
}
}

Expand Down

0 comments on commit 3fa4dd4

Please sign in to comment.