ephemeral logins

This commit is contained in:
Aiden McClelland
2024-07-26 12:29:59 -06:00
parent e0b47feb8b
commit a3b94816f9
9 changed files with 87 additions and 29 deletions

View File

@@ -40,6 +40,7 @@ export class LoginPage {
await this.api.login({
password: this.password,
metadata: { platforms: getPlatforms() },
ephemeral: window.location.host === 'localhost',
})
this.password = ''

View File

@@ -33,6 +33,7 @@ export module RR {
export type LoginReq = {
password: string
metadata: SessionMetadata
ephemeral?: boolean
} // auth.login - unauthed
export type loginRes = null

View File

@@ -73,8 +73,6 @@ export class ConfigService {
const hostnameInfo =
hosts[ui.addressInfo.hostId]?.hostnameInfo[ui.addressInfo.internalPort]
console.debug(hostnameInfo)
if (!hostnameInfo) return ''
const addressInfo = ui.addressInfo