Skip to content

normalizePlaygroundOAuth2

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/project/playground-oauth2-input.ts

Validate an owner's OAuth2 declaration and return what to store, or null to clear it.

Throws BadRequestException with a message meant for the owner, not for a log line.

Signature

ts
function normalizePlaygroundOAuth2(input: unknown, current: PlaygroundOAuth2Config | null): PlaygroundOAuth2Config | null

Parameters

NameType
inputunknown
current`PlaygroundOAuth2Config

Returns: PlaygroundOAuth2Config | null

Was this page helpful?

Download as PDF