We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 226e49d commit a75289fCopy full SHA for a75289f
packages/auth/src/team/selectors/teamKeyring.ts
@@ -1,11 +1,9 @@
1
-import { type KeysetWithSecrets, createKeyring } from '@localfirst/crdx'
+import { type KeysetWithSecrets } from '@localfirst/crdx'
2
import { type TeamState } from 'team/types.js'
3
import { KeyType } from 'util/types.js'
4
-import { keyMap } from './keyMap.js'
+import { keyring } from './keyring.js'
5
6
const { TEAM } = KeyType
7
8
-export const teamKeyring = (state: TeamState, keys: KeysetWithSecrets) => {
9
- const allTeamKeys = keyMap(state, keys)[TEAM][TEAM]
10
- return createKeyring(allTeamKeys)
11
-}
+export const teamKeyring = (state: TeamState, keys: KeysetWithSecrets) =>
+ keyring(state, { type: TEAM, name: TEAM }, keys)
0 commit comments