mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 04:55:42 +09:00
feat(auth): migrate passkeys to fluxer.com (#2964)
This commit is contained in:
1 parent
08e65d41c0
commit
841fb7af41
197 files changed
+17147
-12336
No files matched your search
@@ -6,6 +6,7 @@ export const CANARY_APP_URL = 'https://web.canary.fluxer.app';
|
||||
export const STABLE_MIGRATED_APP_ORIGIN = 'https://fluxer.com';
|
||||
export const CANARY_MIGRATED_APP_ORIGIN = 'https://canary.fluxer.com';
|
||||
export const MIGRATED_APP_ENTRY_PATH = '/app';
|
||||
export const PASSKEY_RP_IDS = ['fluxer.app', 'fluxer.com'] as const;
|
||||
export const STATIC_CDN_URL = 'https://fluxerstatic.com';
|
||||
export const DEFAULT_WINDOW_WIDTH = 1280;
|
||||
export const DEFAULT_WINDOW_HEIGHT = 800;
|
||||
|
||||
@@ -764,6 +764,7 @@ export interface ElectronAPI {
|
||||
passkeyIsSupported: () => Promise<boolean>;
|
||||
passkeyAuthenticate: (options: PublicKeyCredentialRequestOptionsJSON) => Promise<AuthenticationResponseJSON>;
|
||||
passkeyRegister: (options: PublicKeyCredentialCreationOptionsJSON) => Promise<RegistrationResponseJSON>;
|
||||
passkeyRpIds: ReadonlyArray<string>;
|
||||
domainMigration: DomainMigrationApi;
|
||||
virtmic: VirtmicApi;
|
||||
nativeAudio: NativeAudioApi;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import {BUILD_CHANNEL} from '@electron/common/BuildChannel';
|
||||
import {PASSKEY_RP_IDS} from '@electron/common/Constants';
|
||||
import type {
|
||||
AppMetricsSnapshot,
|
||||
ClipboardWriteFileOptions,
|
||||
@@ -451,6 +452,7 @@ const api: ElectronAPI = {
|
||||
options: PublicKeyCredentialCreationOptionsJSON,
|
||||
requestContext?: {pin?: string},
|
||||
): Promise<RegistrationResponseJSON> => ipcRenderer.invoke('passkey-register', options, requestContext),
|
||||
passkeyRpIds: PASSKEY_RP_IDS,
|
||||
domainMigration: {
|
||||
version: 1,
|
||||
setAppOrigin: (origin: string): Promise<void> => ipcRenderer.invoke('domain-migration:set-app-origin', origin),
|
||||
|
||||
Reference in new issue
Block a user