/** * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) Infonomic Company Limited */ /** Native JWT login membership. This is not a browser binding or a bearer credential store. */ export interface LoginSessionRow { id: string admin_user_id: string session_version: number expires_at: Date revoked_at: Date | null } export interface LoginSessionsRepository { /** All writes run under the owning account lock, through its scoped store. */ create(input: Omit): Promise findById(id: string): Promise extend(id: string, expiresAt: Date): Promise revoke(id: string, at?: Date): Promise revokeAllForUser(adminUserId: string, at?: Date): Promise }