provider-logos.ts16 lines · main
1/**
2 * Official Konnos mark for OAuth buttons (always show with "continue with konnos").
3 * Source: apps/web/public/konnos.svg (transparent plate, purple gem).
4 * Embedded so customer apps do not need to host the file.
5 */
6export const KONNOS_LOGO_DATA_URI =
7 'data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%20%3Csvg%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20version%3D%221.1%22%20viewBox%3D%220%200%20512%20512%22%3E%20%3C%21--%20Transparent%20background%20for%20OAuth%20button%20%28no%20white%20plate%29%20--%3E%20%3Cg%3E%20%3Cpath%20d%3D%22M423.008%2C275.386l-147.524%2C147.623c-10.765%2C10.655-28.231%2C10.655-38.886%2C0l-147.524-147.623c-10.765-10.654-10.765-28.119%2C0-38.773l104.574-104.676%2C11.644-11.643%2C31.306-31.304c10.655-10.655%2C28.121-10.655%2C38.886%2C0l147.524%2C147.623c10.656%2C10.654%2C10.656%2C28.119%2C0%2C38.773Z%22%20fill%3D%22%23af2cf4%22/%3E%20%3Cpath%20d%3D%22M334.355%2C261.306c-8.807%2C8.807-23.145%2C8.807-31.952%2C0-6.774-6.774-8.355-16.935-4.629-25.177l-23.822-23.822c-6.21%2C2.145-13.323.903-18.403-3.726-5.758-5.081-7.452-12.983-5.081-19.758l-7.113-7.113v62.661c2.71%2C1.016%2C5.194%2C2.71%2C7.339%2C4.855%2C8.806%2C8.806%2C8.806%2C23.145%2C0%2C31.951-8.807%2C8.807-23.146%2C8.807-31.952%2C0-8.807-8.806-8.807-23.145%2C0-31.951%2C2.371-2.371%2C5.193-4.065%2C8.129-5.194v-67.742c0-5.984-2.145-12.307-6.21-17.275-.564-.677-1.242-1.355-1.806-2.145-.79-.677-1.355-1.355-2.145-1.919l-23.033-23.032%2C11.629-11.629%2C57.242%2C57.242c5.984-1.919%2C12.645-.564%2C17.613%2C3.839%2C5.419%2C4.855%2C7.113%2C12.306%2C5.081%2C18.855l24.274%2C24.274c8.242-3.5%2C18.177-1.807%2C24.839%2C4.855%2C8.806%2C8.806%2C8.806%2C23.145%2C0%2C31.951Z%22%20fill%3D%22%23fff%22/%3E%20%3Ccircle%20cx%3D%22256.459%22%20cy%3D%22362.426%22%20r%3D%2222.581%22%20fill%3D%22%23fff%22/%3E%20%3C/g%3E%20%3C/svg%3E';
8
9/** Known OAuth providers that ship a built-in button logo. */
10export const PROVIDER_LOGO_DATA_URI: Readonly<Record<string, string>> = {
11 konnos: KONNOS_LOGO_DATA_URI,
12};
13
14export function providerLogoDataUri(provider: string): string | null {
15 return PROVIDER_LOGO_DATA_URI[provider] ?? null;
16}