mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
13 lines
423 B
TypeScript
13 lines
423 B
TypeScript
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
import Sudo from '@app/features/auth/state/AuthSudo';
|
|
import SudoPrompt from '@app/features/auth/state/SudoPrompt';
|
|
import SessionManager from '@app/features/platform/state/AuthSession';
|
|
import {http} from '@app/features/platform/transport/RestTransport';
|
|
|
|
export function setupHttp(): void {
|
|
http.installAuth(() => SessionManager.token);
|
|
Sudo.init();
|
|
SudoPrompt.init();
|
|
}
|