@ -656,7 +656,8 @@ export async function saveNewIdentity(
] ;
] ;
await platformService . dbExec ( sql , params ) ;
await platformService . dbExec ( sql , params ) ;
await platformService . updateDefaultSettings ( { activeDid : identity.did } ) ;
// Update active identity in the active_identity table instead of settings
await platformService . updateActiveDid ( identity . did ) ;
await platformService . insertNewDidIntoSettings ( identity . did ) ;
await platformService . insertNewDidIntoSettings ( identity . did ) ;
} catch ( error ) {
} catch ( error ) {
@ -715,7 +716,8 @@ export const registerSaveAndActivatePasskey = async (
) : Promise < Account > = > {
) : Promise < Account > = > {
const account = await registerAndSavePasskey ( keyName ) ;
const account = await registerAndSavePasskey ( keyName ) ;
const platformService = await getPlatformService ( ) ;
const platformService = await getPlatformService ( ) ;
await platformService . updateDefaultSettings ( { activeDid : account.did } ) ;
// Update active identity in the active_identity table instead of settings
await platformService . updateActiveDid ( account . did ) ;
await platformService . updateDidSpecificSettings ( account . did , {
await platformService . updateDidSpecificSettings ( account . did , {
isRegistered : false ,
isRegistered : false ,
} ) ;
} ) ;