feat(frontend): login with center URL and consume center-issued guild tokens

This commit is contained in:
nav
2026-05-13 08:00:23 +00:00
parent 66c49ff654
commit c906cde209
10 changed files with 170 additions and 125 deletions

View File

@@ -1,4 +1,5 @@
export type AuthSession = {
centerApiBase: string
accessToken: string
refreshToken: string
tokenType: string
@@ -6,6 +7,17 @@ export type AuthSession = {
id: string
email: string
}
guilds: Array<{
nodeId: string
name: string
endpoint: string
status: 'active' | 'offline' | 'revoked'
}>
guildAccessTokens: Array<{
guildNodeId: string
token: string
tokenType: string
}>
}
const KEY = 'fabric.auth.session.v1'