@chromia/ft4 - v2.1.0
    Preparing search index...

    Function logoutSession

    • Creates a function that can be used to log out a session, which it does by removing the disposable auth descriptor(s) associated with the account stored in the provided session.

      Parameters

      • session: Session

        session to use for this action

      • disposableKeyStore: FtKeyStore | null

        the key store that holds the disposable key for this session

      • loginKeyStore: LoginKeyStore | null

        the key store which holds all disposable keys

      Returns () => Promise<void>

      This function is only suitable if the key to the disposable keystore is still available. If not, the admin will have to manually delete auth descriptors or wait until they expire.