Something went wrong. Try again.
r/place on the atmosphere, targeting cloudflare's free tier
Something went wrong. Try again.
123456789101112131415161718192021// OAuth client metadata for a deployed instance. Its URL is the client_id, so// it's generated from the request origin and works for any operator's domain.// Local dev uses a loopback client instead (see src/web/auth.ts).
import { OAUTH_SCOPE } from "../shared/lexicon.ts";
export function clientMetadata(origin: string) { return { client_id: `${origin}/client-metadata.json`, client_name: "atplace", client_uri: origin, redirect_uris: [`${origin}/`], scope: OAUTH_SCOPE, grant_types: ["authorization_code", "refresh_token"], response_types: ["code"], token_endpoint_auth_method: "none", application_type: "web", dpop_bound_access_tokens: true, };}