Only authenticate the DID for the model the compose client connects to

This commit is contained in:
Alec LaLonde
2023-02-28 20:32:44 -07:00
parent 8a3846a888
commit 6c7454990c

View File

@@ -57,8 +57,7 @@ export const ComposeDBContextProvider: React.FC<PropsWithChildren> = ({
accountId,
);
session = await DIDSession.authorize(authMethod, {
// todo restrict this to only our composite
resources: ['ceramic://*'],
resources: composeDBClient.resources,
});
cacheDIDSession(session);
}