unsetLocalKey
This commit is contained in:
		
							parent
							
								
									de0eb8a52c
								
							
						
					
					
						commit
						41b86c8251
					
				@ -131,6 +131,12 @@ export function useVaultMigration () {
 | 
			
		||||
  return migrate
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export async function unsetLocalKey (userId) {
 | 
			
		||||
  const config = await openConfig(userId)
 | 
			
		||||
  await config.unset('key')
 | 
			
		||||
  await config.close()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * A react hook to use the vault for a specific owner entity and key
 | 
			
		||||
 * It will automatically handle the vault lifecycle and value updates
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user